Package 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Get the token text for this nodeint
getType()
Get the token type for this nodevoid
initialize(int t, java.lang.String txt)
void
initialize(AST t)
void
initialize(Token tok)
void
setText(java.lang.String text_)
Set the token text for this nodevoid
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, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
-
-
-
-
Constructor Detail
-
CommonAST
public CommonAST()
-
CommonAST
public CommonAST(Token tok)
-
-
Method Detail
-
getText
public java.lang.String getText()
Get the token text for this node
-
getType
public int getType()
Get the token type for this node
-
initialize
public void initialize(int t, java.lang.String txt)
- Specified by:
initialize
in interfaceAST
- Specified by:
initialize
in classBaseAST
-
initialize
public void initialize(AST t)
- Specified by:
initialize
in interfaceAST
- Specified by:
initialize
in classBaseAST
-
initialize
public void initialize(Token tok)
- Specified by:
initialize
in interfaceAST
- Specified by:
initialize
in classBaseAST
-
setText
public void setText(java.lang.String text_)
Set the token text for this node
-
-