ObjectDeclaration
Shorthand to instantiate a new object. Declares it with ‘new’ and passes arguments to the constructor of the object, if any
import { ObjectDeclaration } from "@alloy-js/java";
<ObjectDeclaration abstract args={Children[]} default final name="string" native private protected public refkey={Refkey} static strictfp synchronized transient type={Children} volatile />
import { ObjectDeclaration } from "@alloy-js/java/stc";
ObjectDeclaration({ abstract: boolean, args: Children[], default: boolean, final: boolean, name: string, native: boolean, private: boolean, protected: boolean, public: boolean, refkey: Refkey, static: boolean, strictfp: boolean, synchronized: boolean, transient: boolean, type: Children, volatile: boolean,}).children(children)
Props
abstract | optionalboolean |
args | optionalChildren[] |
children | optionalChildren |
default | optionalboolean |
final | optionalboolean |
name | string |
native | optionalboolean |
private | optionalboolean |
protected | optionalboolean |
public | optionalboolean |
refkey | optionalRefkey |
static | optionalboolean |
strictfp | optionalboolean |
synchronized | optionalboolean |
transient | optionalboolean |
type | Children |
volatile | optionalboolean |