Top Description Fields Constructors Methods
javassist.compiler.ast

public Class CastExpr

extends ASTList
implements TokenId
Class Inheritance
All Implemented Interfaces
javassist.compiler.TokenId
Known Direct Subclasses
javassist.compiler.ast.InstanceOfExpr
Imports
javassist.compiler.CompileError, .TokenId

Cast expression.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
CastExpr(ASTList className, int dim, ASTree expr)

public
CastExpr(int type, int dim, ASTree expr)

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 int
public ASTList
public ASTree
public String
getTag()

Overrides javassist.compiler.ast.ASTree.getTag.

Returns the type of this node.

public int
public void
Inherited from javassist.compiler.ast.ASTList:
appendconcatgetLeftgetRightheadlengthlengthmakesetHeadsetLeftsetRightsetTailsublistsubsttailtoString

Field Detail

arrayDimback to summary
protected int arrayDim
castTypeback to summary
protected int castType
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javassist.compiler.ast.ASTList.serialVersionUID.

default serialVersionUID

Constructor Detail

CastExprback to summary
public CastExpr(ASTList className, int dim, ASTree expr)
CastExprback to summary
public CastExpr(int type, int dim, ASTree expr)

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
getArrayDimback to summary
public int getArrayDim()
getClassNameback to summary
public ASTList getClassName()
getOprandback to summary
public ASTree getOprand()
getTagback to summary
public 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
getTypeback to summary
public int getType()
setOprandback to summary
public void setOprand(ASTree t)