Top Description Fields Constructors Methods
javassist.compiler.ast

public abstract Class ASTree

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
javassist.compiler.ast.DoubleConst, javassist.compiler.ast.IntConst, javassist.compiler.ast.Keyword, javassist.compiler.ast.Pair, javassist.compiler.ast.StringL, javassist.compiler.ast.Symbol, javassist.compiler.ast.ASTList
Imports
java.io.Serializable, javassist.compiler.CompileError

Abstract Syntax Tree. An ASTree object represents a node of a binary tree. If the node is a leaf node, both getLeft() and getRight() returns null.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

default serialVersionUID

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Is a method for the visitor pattern.

public ASTree
public ASTree
protected String
getTag()

Returns the type of this node.

public void
setLeft(ASTree _left)

public void
setRight(ASTree _right)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

default serialVersionUID

Constructor Detail

ASTreeback to summary
public ASTree()

Method Detail

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

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

getLeftback to summary
public ASTree getLeft()
getRightback to summary
public ASTree getRight()
getTagback to summary
protected String getTag()

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

setLeftback to summary
public void setLeft(ASTree _left)
setRightback to summary
public void setRight(ASTree _right)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override