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

Field Summary
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
CommonAST()
           
CommonAST(Token tok)
           
 
Method Summary
 String getText()
          Get the token text for this node
 int getType()
          Get the token type for this node
 void initialize(AST t)
           
 void initialize(int t, String txt)
           
 void initialize(Token tok)
           
 void setText(String text_)
          Set the token text for this node
 void 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, getFirstChild, getNextSibling, getNumberOfChildren, 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
 

Constructor Detail

CommonAST

public CommonAST()

CommonAST

public CommonAST(Token tok)
Method Detail

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.