#include <CommonAST.hpp>
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 |
CommonAST::CommonAST | ( | ) | [inline] |
CommonAST::CommonAST | ( | RefToken | t | ) | [inline] |
CommonAST::CommonAST | ( | const CommonAST & | other | ) | [inline] |
virtual CommonAST::~CommonAST | ( | ) | [inline, virtual] |
virtual RefAST CommonAST::clone | ( | void | ) | const [inline, virtual] |
RefAST CommonAST::factory | ( | ) | [static] |
Reimplemented in CommonASTWithHiddenTokens.
virtual std ::string CommonAST::getText | ( | ) | const [inline, virtual] |
Get the token text for this node.
Reimplemented from BaseAST.
virtual int CommonAST::getType | ( | ) | const [inline, virtual] |
Get the token type for this node.
Reimplemented from BaseAST.
virtual void CommonAST::initialize | ( | RefToken | t | ) | [inline, virtual] |
Implements AST.
Reimplemented in CommonASTWithHiddenTokens.
virtual void CommonAST::initialize | ( | RefAST | t | ) | [inline, virtual] |
Implements AST.
Reimplemented in CommonASTWithHiddenTokens.
virtual void CommonAST::initialize | ( | int | t, | |
const std::string & | txt | |||
) | [inline, virtual] |
Various initialization routines. Used by several factories to initialize an AST element.
Implements AST.
Reimplemented in CommonASTWithHiddenTokens.
virtual void CommonAST::setText | ( | const std::string & | txt | ) | [inline, virtual] |
Set the token text for this node.
Reimplemented from BaseAST.
virtual void CommonAST::setType | ( | int | type | ) | [inline, virtual] |
Set the token type for this node.
Reimplemented from BaseAST.
virtual const char* CommonAST::typeName | ( | void | ) | const [inline, virtual] |
std ::string CommonAST::text [protected] |
int CommonAST::ttype [protected] |
const char *const CommonAST::TYPE_NAME = "CommonAST" [static] |
Reimplemented in CommonASTWithHiddenTokens.