antlr::CommonAST Class Reference

#include <CommonAST.hpp>

Inheritance diagram for antlr::CommonAST:
[legend]
Collaboration diagram for antlr::CommonAST:
[legend]

List of all members.

Public Member Functions

 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 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 std::string &txt)
virtual void initialize (RefAST t)
virtual void initialize (RefToken t)
virtual void setText (const std::string &txt)
 Set the token text for this node.
virtual void setType (int type)
 Set the token type for this node.

Static Public Member Functions

static RefAST factory ()

Static Public Attributes

static const char *const TYPE_NAME = "CommonAST"

Protected Attributes

int ttype
std::string text

Constructor & Destructor Documentation

antlr::CommonAST::CommonAST (  )  [inline]
antlr::CommonAST::CommonAST ( RefToken  t  )  [inline]
antlr::CommonAST::CommonAST ( const CommonAST other  )  [inline]
virtual antlr::CommonAST::~CommonAST (  )  [inline, virtual]

Member Function Documentation

virtual RefAST antlr::CommonAST::clone ( void   )  const [inline, virtual]

Clone this AST node.

Implements antlr::BaseAST.

Reimplemented in antlr::CommonASTWithHiddenTokens.

RefAST antlr::CommonAST::factory (  )  [static]
virtual std ::string antlr::CommonAST::getText (  )  const [inline, virtual]

Get the token text for this node.

Reimplemented from antlr::BaseAST.

virtual int antlr::CommonAST::getType (  )  const [inline, virtual]

Get the token type for this node.

Reimplemented from antlr::BaseAST.

virtual void antlr::CommonAST::initialize ( RefToken  t  )  [inline, virtual]

Implements antlr::AST.

Reimplemented in antlr::CommonASTWithHiddenTokens.

virtual void antlr::CommonAST::initialize ( RefAST  t  )  [inline, virtual]

Implements antlr::AST.

Reimplemented in antlr::CommonASTWithHiddenTokens.

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

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

Implements antlr::AST.

Reimplemented in antlr::CommonASTWithHiddenTokens.

virtual void antlr::CommonAST::setText ( const std::string &  txt  )  [inline, virtual]

Set the token text for this node.

Reimplemented from antlr::BaseAST.

virtual void antlr::CommonAST::setType ( int  type  )  [inline, virtual]

Set the token type for this node.

Reimplemented from antlr::BaseAST.

virtual const char* antlr::CommonAST::typeName ( void   )  const [inline, virtual]

Return the class name.

Implements antlr::BaseAST.

Reimplemented in antlr::CommonASTWithHiddenTokens.


Member Data Documentation

std ::string antlr::CommonAST::text [protected]
int antlr::CommonAST::ttype [protected]
const char *const antlr::CommonAST::TYPE_NAME = "CommonAST" [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
Generated by  doxygen 1.6.2-20100208