Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CommonAST Class Reference

#include <CommonAST.hpp>

Inheritance diagram for CommonAST:

BaseAST AST CommonASTWithHiddenTokens List of all members.

Public Methods

 CommonAST ()
 CommonAST (RefToken t)
 CommonAST (const CommonAST &other)
virtual ~CommonAST ()
virtual const char * typeName (void) const
 Return the class name.

virtual RefAST clone (void) const
 Clone this AST node.

virtual ANTLR_USE_NAMESPACE (std) string getText() const
 Get the token text for this node.

virtual int getType () const
 Get the token type for this node.

virtual void initialize (int t, const ANTLR_USE_NAMESPACE(std) string &txt)
virtual void initialize (RefAST t)
virtual void initialize (RefToken t)
virtual void setText (const ANTLR_USE_NAMESPACE(std) string &txt)
 Set the token text for this node.

virtual void setType (int type)
 Set the token type for this node.


Static Public Methods

RefAST factory ()

Static Public Attributes

const char *const TYPE_NAME = "CommonAST"

Protected Methods

 ANTLR_USE_NAMESPACE (std) string text

Protected Attributes

int ttype

Constructor & Destructor Documentation

CommonAST::CommonAST  
 

CommonAST::CommonAST RefToken    t
 

CommonAST::CommonAST const CommonAST &    other
 

CommonAST::~CommonAST   [virtual]
 


Member Function Documentation

CommonAST::ANTLR_USE_NAMESPACE std    [protected, virtual]
 

Walk the tree looking for all exact subtree matches. Return an ASTEnumerator that lets the caller walk the list of subtree roots found herein.

Reimplemented from BaseAST.

virtual CommonAST::ANTLR_USE_NAMESPACE std    const [virtual]
 

Get the token text for this node.

Reimplemented from BaseAST.

RefAST CommonAST::clone void    const [virtual]
 

Clone this AST node.

Reimplemented from BaseAST.

Reimplemented in CommonASTWithHiddenTokens.

RefAST CommonAST::factory   [static]
 

Reimplemented in CommonASTWithHiddenTokens.

int CommonAST::getType   const [virtual]
 

Get the token type for this node.

Reimplemented from BaseAST.

void CommonAST::initialize RefToken    t [virtual]
 

Implements AST.

Reimplemented in CommonASTWithHiddenTokens.

void CommonAST::initialize RefAST    t [virtual]
 

Implements AST.

Reimplemented in CommonASTWithHiddenTokens.

void CommonAST::initialize int    t,
const ANTLR_USE_NAMESPACE(std) string &    txt
[virtual]
 

Various initialization routines. Used by several factories to initialize an AST element.

Implements AST.

Reimplemented in CommonASTWithHiddenTokens.

void CommonAST::setText const ANTLR_USE_NAMESPACE(std) string &    txt [virtual]
 

Set the token text for this node.

Reimplemented from BaseAST.

void CommonAST::setType int    type [virtual]
 

Set the token type for this node.

Reimplemented from BaseAST.

const char * CommonAST::typeName void    const [virtual]
 

Return the class name.

Reimplemented from BaseAST.

Reimplemented in CommonASTWithHiddenTokens.


Member Data Documentation

int CommonAST::ttype [protected]
 

const char *const CommonAST::TYPE_NAME = "CommonAST" [static]
 

Reimplemented from BaseAST.

Reimplemented in CommonASTWithHiddenTokens.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:27 2004 for Lemur Toolkit by doxygen1.2.18