antlr
Class CommonAST

java.lang.Object
  |
  +--antlr.BaseAST
        |
        +--antlr.CommonAST
All Implemented Interfaces:
AST, Serializable
Direct Known Subclasses:
CommonASTWithHiddenTokens

public class CommonAST
extends BaseAST

Untamed: Common AST node implementation

See Also:
Serialized Form

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

ttype

int ttype

text

String text
Constructor Detail

CommonAST

public CommonAST()
Enabled:


CommonAST

public CommonAST(Token tok)
Enabled:

Method Detail

getText

public String getText()
Enabled: Get the token text for this node

Specified by:
getText in interface AST
Overrides:
getText in class BaseAST

getType

public int getType()
Enabled: 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)
Enabled:

Specified by:
initialize in interface AST
Specified by:
initialize in class BaseAST

initialize

public void initialize(AST t)
Enabled:

Specified by:
initialize in interface AST
Specified by:
initialize in class BaseAST

initialize

public void initialize(Token tok)
Enabled:

Specified by:
initialize in interface AST
Specified by:
initialize in class BaseAST

setText

public void setText(String text_)
Enabled: Set the token text for this node

Specified by:
setText in interface AST
Overrides:
setText in class BaseAST

setType

public void setType(int ttype_)
Enabled: Set the token type for this node

Specified by:
setType in interface AST
Overrides:
setType in class BaseAST


comments?