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 | optional boolean | |
| args | optional Children[] | |
| children | optional Children | |
| default | optional boolean | |
| final | optional boolean | |
| name | string | Namekey | |
| native | optional boolean | |
| private | optional boolean | |
| protected | optional boolean | |
| public | optional boolean | |
| refkey | optional Refkey | |
| static | optional boolean | |
| strictfp | optional boolean | |
| synchronized | optional boolean | |
| transient | optional boolean | |
| type | Children | |
| volatile | optional boolean |