public interface AST
Modifier and Type | Method and Description |
---|---|
void |
addChild(AST c)
Add a (rightmost) child to this node
|
boolean |
equals(AST t) |
boolean |
equalsList(AST t) |
boolean |
equalsListPartial(AST t) |
boolean |
equalsTree(AST t) |
boolean |
equalsTreePartial(AST t) |
ASTEnumeration |
findAll(AST tree) |
ASTEnumeration |
findAllPartial(AST subtree) |
int |
getColumn() |
AST |
getFirstChild()
Get the first child of this node; null if no children
|
int |
getLine() |
AST |
getNextSibling()
Get the next sibling in line after this one
|
int |
getNumberOfChildren()
Get number of children of this node; if leaf, returns 0
|
java.lang.String |
getText()
Get the token text for this node
|
int |
getType()
Get the token type for this node
|
void |
initialize(AST t) |
void |
initialize(int t,
java.lang.String txt) |
void |
initialize(Token t) |
void |
setFirstChild(AST c)
Set the first child of a node.
|
void |
setNextSibling(AST n)
Set the next sibling after this one.
|
void |
setText(java.lang.String text)
Set the token text for this node
|
void |
setType(int ttype)
Set the token type for this node
|
java.lang.String |
toString() |
java.lang.String |
toStringList() |
java.lang.String |
toStringTree() |
void addChild(AST c)
boolean equals(AST t)
boolean equalsList(AST t)
boolean equalsListPartial(AST t)
boolean equalsTree(AST t)
boolean equalsTreePartial(AST t)
ASTEnumeration findAll(AST tree)
ASTEnumeration findAllPartial(AST subtree)
AST getFirstChild()
AST getNextSibling()
java.lang.String getText()
int getType()
int getLine()
int getColumn()
int getNumberOfChildren()
void initialize(int t, java.lang.String txt)
void initialize(AST t)
void initialize(Token t)
void setFirstChild(AST c)
void setNextSibling(AST n)
void setText(java.lang.String text)
void setType(int ttype)
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toStringList()
java.lang.String toStringTree()