OpenMD  2.5
Molecular Dynamics in the Open
antlr::CommonASTWithHiddenTokens Class Reference

#include <CommonASTWithHiddenTokens.hpp>

Inheritance diagram for antlr::CommonASTWithHiddenTokens:
antlr::CommonAST antlr::BaseAST antlr::AST

Public Member Functions

 CommonASTWithHiddenTokens ()
 
virtual ~CommonASTWithHiddenTokens ()
 
virtual const char * typeName (void) const
 Return the class name. More...
 
virtual RefAST clone (void) const
 Clone this AST node. More...
 
virtual void initialize (int t, const std ::string &txt)
 
virtual void initialize (RefAST t)
 
virtual void initialize (RefToken t)
 
virtual RefToken getHiddenAfter () const
 
virtual RefToken getHiddenBefore () const
 
- Public Member Functions inherited from antlr::CommonAST
 CommonAST ()
 
 CommonAST (RefToken t)
 
 CommonAST (const CommonAST &other)
 
virtual ~CommonAST ()
 
virtual std ::string getText () const
 Get the token text for this node. More...
 
virtual int getType () const
 Get the token type for this node. More...
 
virtual void setText (const std ::string &txt)
 Set the token text for this node. More...
 
virtual void setType (int type)
 Set the token type for this node. More...
 
- Public Member Functions inherited from antlr::BaseAST
 BaseAST ()
 
 BaseAST (const BaseAST &other)
 
virtual ~BaseAST ()
 
virtual bool equals (RefAST t) const
 Is node t equal to this in terms of token type and text? More...
 
virtual bool equalsList (RefAST t) const
 
virtual bool equalsListPartial (RefAST t) const
 
virtual bool equalsTree (RefAST t) const
 
virtual bool equalsTreePartial (RefAST t) const
 
virtual std ::vector< RefASTfindAll (RefAST t)
 
virtual std ::vector< RefASTfindAllPartial (RefAST t)
 
virtual void addChild (RefAST c)
 Add a node to the end of the child list for this node. More...
 
virtual size_t getNumberOfChildren () const
 
virtual RefAST getFirstChild () const
 Get the first child of this node; null if no children. More...
 
virtual RefAST getNextSibling () const
 Get the next sibling in line after this one. More...
 
virtual void removeChildren ()
 Remove all children. More...
 
virtual void setFirstChild (RefAST c)
 Set the first child of a node. More...
 
virtual void setNextSibling (RefAST n)
 Set the next sibling after this one. More...
 
virtual std ::string toString () const
 Return string representation for the AST. More...
 
virtual std ::string toStringList () const
 Print out a child sibling tree in LISP notation. More...
 
virtual std ::string toStringTree () const
 
- Public Member Functions inherited from antlr::AST
 AST ()
 
 AST (const AST &)
 
virtual ~AST ()
 

Static Public Member Functions

static RefAST factory ()
 
- Static Public Member Functions inherited from antlr::CommonAST
static RefAST factory ()
 

Static Public Attributes

static const char *const TYPE_NAME = "CommonASTWithHiddenTokens"
 
- Static Public Attributes inherited from antlr::CommonAST
static const char *const TYPE_NAME = "CommonAST"
 

Protected Attributes

RefToken hiddenBefore
 
RefToken hiddenAfter
 
- Protected Attributes inherited from antlr::CommonAST
int ttype
 
std ::string text
 
- Protected Attributes inherited from antlr::BaseAST
RefBaseAST down
 
RefBaseAST right
 

Detailed Description

A CommonAST whose initialization copies hidden token information from the Token used to create a node.

Definition at line 21 of file CommonASTWithHiddenTokens.hpp.

Constructor & Destructor Documentation

◆ CommonASTWithHiddenTokens()

antlr::CommonASTWithHiddenTokens::CommonASTWithHiddenTokens ( )

Definition at line 23 of file CommonASTWithHiddenTokens.cpp.

Referenced by clone().

◆ ~CommonASTWithHiddenTokens()

antlr::CommonASTWithHiddenTokens::~CommonASTWithHiddenTokens ( )
virtual

Definition at line 28 of file CommonASTWithHiddenTokens.cpp.

Member Function Documentation

◆ clone()

RefAST antlr::CommonASTWithHiddenTokens::clone ( void  ) const
virtual

Clone this AST node.

Reimplemented from antlr::CommonAST.

Definition at line 56 of file CommonASTWithHiddenTokens.cpp.

References CommonASTWithHiddenTokens().

◆ factory()

RefAST antlr::CommonASTWithHiddenTokens::factory ( )
static

Definition at line 51 of file CommonASTWithHiddenTokens.cpp.

◆ getHiddenAfter()

virtual RefToken antlr::CommonASTWithHiddenTokens::getHiddenAfter ( ) const
inlinevirtual

Definition at line 37 of file CommonASTWithHiddenTokens.hpp.

Referenced by initialize().

◆ getHiddenBefore()

virtual RefToken antlr::CommonASTWithHiddenTokens::getHiddenBefore ( ) const
inlinevirtual

Definition at line 42 of file CommonASTWithHiddenTokens.hpp.

Referenced by initialize().

◆ initialize() [1/3]

void antlr::CommonASTWithHiddenTokens::initialize ( int  t,
const std ::string &  txt 
)
virtual

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

Reimplemented from antlr::CommonAST.

Definition at line 32 of file CommonASTWithHiddenTokens.cpp.

References antlr::CommonAST::initialize().

◆ initialize() [2/3]

void antlr::CommonASTWithHiddenTokens::initialize ( RefAST  t)
virtual

Reimplemented from antlr::CommonAST.

Definition at line 37 of file CommonASTWithHiddenTokens.cpp.

References hiddenAfter, hiddenBefore, and antlr::CommonAST::initialize().

◆ initialize() [3/3]

void antlr::CommonASTWithHiddenTokens::initialize ( RefToken  t)
virtual

◆ typeName()

virtual const char* antlr::CommonASTWithHiddenTokens::typeName ( void  ) const
inlinevirtual

Return the class name.

Reimplemented from antlr::CommonAST.

Definition at line 25 of file CommonASTWithHiddenTokens.hpp.

References ANTLR_USE_NAMESPACE, and TYPE_NAME.

Member Data Documentation

◆ hiddenAfter

RefToken antlr::CommonASTWithHiddenTokens::hiddenAfter
protected

Definition at line 51 of file CommonASTWithHiddenTokens.hpp.

Referenced by initialize().

◆ hiddenBefore

RefToken antlr::CommonASTWithHiddenTokens::hiddenBefore
protected

Definition at line 51 of file CommonASTWithHiddenTokens.hpp.

Referenced by initialize().

◆ TYPE_NAME

const char *const antlr::CommonASTWithHiddenTokens::TYPE_NAME = "CommonASTWithHiddenTokens"
static

Definition at line 49 of file CommonASTWithHiddenTokens.hpp.

Referenced by typeName().


The documentation for this class was generated from the following files: