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 | Namekey} 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 | Namekey, native: boolean, private: boolean, protected: boolean, public: boolean, refkey: Refkey, static: boolean, strictfp: boolean, synchronized: boolean, transient: boolean, type: Children, volatile: boolean,}).children(children)| abstract | optionalboolean |
| args | optionalChildren[] |
| children | optionalChildren |
| default | optionalboolean |
| final | optionalboolean |
| name | string | Namekey |
| native | optionalboolean |
| private | optionalboolean |
| protected | optionalboolean |
| public | optionalboolean |
| refkey | optionalRefkey |
| static | optionalboolean |
| strictfp | optionalboolean |
| synchronized | optionalboolean |
| transient | optionalboolean |
| type | Children |
| volatile | optionalboolean |