Class CommonAST
java.lang.Object
antlr.BaseAST
antlr.CommonAST
- All Implemented Interfaces:
AST, Serializable
- Direct Known Subclasses:
CommonASTWithHiddenTokens
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()
Get the token text for this nodeint
getType()
Get the token type for this nodevoid
initialize
(int t, String txt) void
initialize
(AST t) void
initialize
(Token tok) void
Set the token text for this nodevoid
setType
(int ttype_) Set the token type for this nodeMethods inherited from class 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
-
getType
-
initialize
- Specified by:
initialize
in interfaceAST
- Specified by:
initialize
in classBaseAST
-
initialize
- Specified by:
initialize
in interfaceAST
- Specified by:
initialize
in classBaseAST
-
initialize
- Specified by:
initialize
in interfaceAST
- Specified by:
initialize
in classBaseAST
-
setText
-
setType
-