antlr
Class CommonAST
java.lang.Object
|
+--antlr.BaseAST
|
+--antlr.CommonAST
- All Implemented Interfaces:
- AST, Serializable
- Direct Known Subclasses:
- CommonASTWithHiddenTokens, XMLAST
- public class CommonAST
- extends BaseAST
Common AST node implementation
- See Also:
- Serialized Form
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
CommonAST
public CommonAST()
CommonAST
public CommonAST(Token tok)
getText
public String getText()
- Get the token text for this node
- Specified by:
getText
in interface AST
- Overrides:
getText
in class BaseAST
getType
public int getType()
- Get the token type for this node
- Specified by:
getType
in interface AST
- Overrides:
getType
in class BaseAST
initialize
public void initialize(int t,
String txt)
- Specified by:
initialize
in interface AST
- Specified by:
initialize
in class BaseAST
initialize
public void initialize(AST t)
- Specified by:
initialize
in interface AST
- Specified by:
initialize
in class BaseAST
initialize
public void initialize(Token tok)
- Specified by:
initialize
in interface AST
- Specified by:
initialize
in class BaseAST
setText
public void setText(String text_)
- Set the token text for this node
- Specified by:
setText
in interface AST
- Overrides:
setText
in class BaseAST
setType
public void setType(int ttype_)
- Set the token type for this node
- Specified by:
setType
in interface AST
- Overrides:
setType
in class BaseAST
Copyright © 1999-2003 Oliver Zeigermann. All Rights Reserved.