antlr
Class CommonAST
java.lang.Object
|
+--antlr.BaseAST
|
+--antlr.CommonAST
- All Implemented Interfaces:
- AST, java.io.Serializable
- Direct Known Subclasses:
- CommonASTWithHiddenTokens
- public class CommonAST
- extends BaseAST
Common AST node implementation
- See Also:
- Serialized Form
Field Summary |
(package private) java.lang.String |
text
|
(package private) int |
ttype
|
Method Summary |
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 tok)
|
void |
setText(java.lang.String text_)
Set the token text for this node |
void |
setType(int ttype_)
Set the token type for this node |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ttype
int ttype
text
java.lang.String text
CommonAST
public CommonAST()
CommonAST
public CommonAST(Token tok)
getText
public java.lang.String getText()
- Get the token text for this node
- Specified by:
getText
in interface AST
- Overrides:
getText
in class BaseAST
getType
public int getType()
- Get the token type for this node
- Specified by:
getType
in interface AST
- Overrides:
getType
in class BaseAST
initialize
public void initialize(int t,
java.lang.String txt)
- Specified by:
initialize
in interface AST
- Specified by:
initialize
in class BaseAST
initialize
public void initialize(AST t)
- Specified by:
initialize
in interface AST
- Specified by:
initialize
in class BaseAST
initialize
public void initialize(Token tok)
- Specified by:
initialize
in interface AST
- Specified by:
initialize
in class BaseAST
setText
public void setText(java.lang.String text_)
- Set the token text for this node
- Specified by:
setText
in interface AST
- Overrides:
setText
in class BaseAST
setType
public void setType(int ttype_)
- Set the token type for this node
- Specified by:
setType
in interface AST
- Overrides:
setType
in class BaseAST