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.StringgetText()Get the token text for this nodeintgetType()Get the token type for this nodevoidinitialize(int t, java.lang.String txt)voidinitialize(AST t)voidinitialize(Token tok)voidsetText(java.lang.String text_)Set the token text for this nodevoidsetType(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:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
initialize
public void initialize(AST t)
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
initialize
public void initialize(Token tok)
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
setText
public void setText(java.lang.String text_)
Set the token text for this node
-
-