Package antlr
Class CommonAST
java.lang.Object
antlr.BaseAST
antlr.CommonAST
- All Implemented Interfaces:
AST,Serializable
- Direct Known Subclasses:
CommonASTWithHiddenTokens
Common AST node implementation
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()Get the token text for this nodeintgetType()Get the token type for this nodevoidinitialize(int t, String txt) voidinitialize(AST t) voidinitialize(Token tok) voidSet the token text for this nodevoidsetType(int ttype_) Set the token type for this nodeMethods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
-
Field Details
-
ttype
int ttype -
text
String text
-
-
Constructor Details
-
CommonAST
public CommonAST() -
CommonAST
-
-
Method Details
-
getText
Get the token text for this node -
getType
public int getType()Get the token type for this node -
initialize
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
initialize
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
initialize
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
setText
Set the token text for this node -
setType
public void setType(int ttype_) Set the token type for this node
-