Top Description Fields Constructors Methods
javassist.compiler.ast

public Class Expr

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

Expression.

Field Summary

Modifier and TypeField and Description
protected int
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
Expr(int op, ASTree _head, ASTList _tail)

pack-priv
Expr(int op, ASTree _head)

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

Overrides javassist.compiler.ast.ASTree.getTag.

Returns the type of this node.

public static Expr
make(int op, ASTree oprand1, ASTree oprand2)

public static Expr
make(int op, ASTree oprand1)

public ASTree
public ASTree
public void
setOperator(int op)

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

Field Detail

operatorIdback to summary
protected int operatorId
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javassist.compiler.ast.ASTList.serialVersionUID.

default serialVersionUID

Constructor Detail

Exprback to summary
pack-priv Expr(int op, ASTree _head, ASTList _tail)
Exprback to summary
pack-priv Expr(int op, ASTree _head)

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
getNameback to summary
public String getName()
getOperatorback to summary
public int getOperator()
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
makeback to summary
public static Expr make(int op, ASTree oprand1, ASTree oprand2)
makeback to summary
public static Expr make(int op, ASTree oprand1)
oprand1back to summary
public ASTree oprand1()
oprand2back to summary
public ASTree oprand2()
setOperatorback to summary
public void setOperator(int op)
setOprand1back to summary
public void setOprand1(ASTree expr)
setOprand2back to summary
public void setOprand2(ASTree expr)