Skip to content

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
/>
abstractoptional boolean
argsoptional Children[]
childrenoptional Children
defaultoptional boolean
finaloptional boolean
namestring | Namekey
nativeoptional boolean
privateoptional boolean
protectedoptional boolean
publicoptional boolean
refkeyoptional Refkey
staticoptional boolean
strictfpoptional boolean
synchronizedoptional boolean
transientoptional boolean
typeChildren
volatileoptional boolean