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"
native
private
protected
public
refkey={Refkey}
static
strictfp
synchronized
transient
type={Children}
volatile
/>

Props

abstractoptionalboolean
argsoptionalChildren[]
childrenoptionalChildren
defaultoptionalboolean
finaloptionalboolean
namestring
nativeoptionalboolean
privateoptionalboolean
protectedoptionalboolean
publicoptionalboolean
refkeyoptionalRefkey
staticoptionalboolean
strictfpoptionalboolean
synchronizedoptionalboolean
transientoptionalboolean
typeChildren
volatileoptionalboolean