|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.BaseAST | +--antlr.CommonAST
Untamed: Common AST node implementation
Field Summary | |
(package private) String |
text
|
(package private) int |
ttype
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
CommonAST()
Enabled: |
|
CommonAST(Token tok)
Enabled: |
Method Summary | |
String |
getText()
Enabled: Get the token text for this node |
int |
getType()
Enabled: Get the token type for this node |
void |
initialize(AST t)
Enabled: |
void |
initialize(int t,
String txt)
Enabled: |
void |
initialize(Token tok)
Enabled: |
void |
setText(String text_)
Enabled: Set the token text for this node |
void |
setType(int ttype_)
Enabled: Set the token type for this node |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int ttype
String text
Constructor Detail |
public CommonAST()
public CommonAST(Token tok)
Method Detail |
public String getText()
getText
in interface AST
getText
in class BaseAST
public int getType()
getType
in interface AST
getType
in class BaseAST
public void initialize(int t, String txt)
initialize
in interface AST
initialize
in class BaseAST
public void initialize(AST t)
initialize
in interface AST
initialize
in class BaseAST
public void initialize(Token tok)
initialize
in interface AST
initialize
in class BaseAST
public void setText(String text_)
setText
in interface AST
setText
in class BaseAST
public void setType(int ttype_)
setType
in interface AST
setType
in class BaseAST
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |