CommonAST Class Reference

#include <CommonAST.hpp>

Inheritance diagram for CommonAST:
[legend]
Collaboration diagram for 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

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

Member Function Documentation

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

Clone this AST node.

Implements BaseAST.

Reimplemented in CommonASTWithHiddenTokens.

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]

Return the class name.

Implements BaseAST.

Reimplemented in CommonASTWithHiddenTokens.


Member Data Documentation

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

Reimplemented in CommonASTWithHiddenTokens.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on 16 Nov 2015 for ANTLR Support Libraries 2.7.1+ by  doxygen 1.6.1