Home | Download | News | Wiki | About ANTLR | Feedback | Support | Bugs


Latest version is 2.7.7.
Download now! »

Download
» Home
» Download
» News
»Using ANTLR
» Documentation
» Wiki
» FAQ
» Articles
» Grammars
» File Sharing
» Code API
» Tech Support
» Bug Tracking
»About ANTLR
» What is ANTLR
» Why use ANTLR
» Showcase
» Testimonials
» Getting Started
» Software License
» ANTLR WebLogs
» ANTLR Workshops
»StringTemplate
»TML
»PCCTS
»Feedback
»Credits
»Contact


Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)

Search



CommonAST


antlr
Class CommonAST

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.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

Constructor Summary
CommonAST()
           
CommonAST(Token tok)
           
 
Method Summary
 java.lang.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, java.lang.String txt)
           
 void initialize(Token tok)
           
 void setText(java.lang.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, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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,
                       java.lang.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(java.lang.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