Top Description Fields Constructors Methods
javassist.compiler.ast

public Class NewExpr

extends ASTList
implements TokenId
Class Inheritance
All Implemented Interfaces
javassist.compiler.TokenId
Imports
javassist.compiler.CompileError, .TokenId

New Expression.

Field Summary

Modifier and TypeField and Description
protected int
protected boolean
private static final long

Constructor Summary

AccessConstructor and Description
public
NewExpr(ASTList className, ASTList args)

public
NewExpr(int type, ASTList arraySize, ArrayInit init)

Method Summary

Modifier and TypeMethod and Description
public void
accept(Visitor v)

Overrides javassist.compiler.ast.ASTList.accept.

Is a method for the visitor pattern.

public ASTList
public ASTList
public int
public ASTList
public ArrayInit
protected String
getTag()

Overrides javassist.compiler.ast.ASTree.getTag.

Returns the type of this node.

public boolean
public static NewExpr
makeObjectArray(ASTList className, ASTList arraySize, ArrayInit init)

Inherited from javassist.compiler.ast.ASTList:
appendconcatgetLeftgetRightheadlengthlengthmakesetHeadsetLeftsetRightsetTailsublistsubsttailtoString

Field Detail

arrayTypeback to summary
protected int arrayType
newArrayback to summary
protected boolean newArray
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javassist.compiler.ast.ASTList.serialVersionUID.

default serialVersionUID

Constructor Detail

NewExprback to summary
public NewExpr(ASTList className, ASTList args)
NewExprback to summary
public NewExpr(int type, ASTList arraySize, ArrayInit init)

Method Detail

acceptback to summary
public void accept(Visitor v) throws CompileError

Overrides javassist.compiler.ast.ASTList.accept.

Doc from javassist.compiler.ast.ASTree.accept.

Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

Annotations
@Override
getArgumentsback to summary
public ASTList getArguments()
getArraySizeback to summary
public ASTList getArraySize()
getArrayTypeback to summary
public int getArrayType()
getClassNameback to summary
public ASTList getClassName()
getInitializerback to summary
public ArrayInit getInitializer()
getTagback to summary
protected String getTag()

Overrides javassist.compiler.ast.ASTree.getTag.

Doc from javassist.compiler.ast.ASTree.getTag.

Returns the type of this node. This method is used by toString().

Annotations
@Override
isArrayback to summary
public boolean isArray()
makeObjectArrayback to summary
public static NewExpr makeObjectArray(ASTList className, ASTList arraySize, ArrayInit init)