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 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 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:
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
Set the token text for this node -
setType
public void setType(int ttype_) Set the token type for this node
-