ObjectCreationExpr

constructor()(source)
constructor(scope: Expression, type: ClassOrInterfaceType, typeArguments: NodeList<Type>, arguments: NodeList<Expression>, anonymousClassBody: NodeList<BodyDeclaration<out Any>>)(source)


constructor(scope: Expression, type: ClassOrInterfaceType, arguments: NodeList<Expression>)(source)

Defines a call to a constructor.

Parameters

scope

may be null

type

this is the class that the constructor is being called for.

arguments

Any arguments to pass to the constructor


constructor(tokenRange: TokenRange, scope: Expression, type: ClassOrInterfaceType, typeArguments: NodeList<Type>, arguments: NodeList<Expression>, anonymousClassBody: NodeList<BodyDeclaration<out Any>>)(source)

This constructor is used by the parser and is considered private.