Kinetis Bootloader Host  2.0.0
Host Tools for Kinetis devices
elftosb::ASTNode Class Referenceabstract

The base class for all AST node classes. More...

#include <ElftosbAST.h>

+ Inheritance diagram for elftosb::ASTNode:
+ Collaboration diagram for elftosb::ASTNode:

Public Member Functions

 ASTNode ()
 Default constructor.
 
 ASTNode (ASTNode *parent)
 Constructor taking a parent node.
 
 ASTNode (const ASTNode &other)
 Copy constructor.
 
virtual ~ASTNode ()
 Destructor.
 
virtual ASTNodeclone () const =0
 Returns an exact duplicate of this object.
 
virtual std::string nodeName () const
 Returns the name of the object's class.
 
Parents
virtual ASTNodegetParent () const
 
virtual void setParent (ASTNode *newParent)
 
Tree printing
virtual void printTree () const
 
virtual void printTree (int indent) const
 
Location
virtual void setLocation (token_loc_t &loc)
 
virtual void setLocation (token_loc_t &first, token_loc_t &last)
 
virtual void setLocation (ASTNode *loc)
 
virtual void setLocation (ASTNode *first, ASTNode *last)
 
virtual token_loc_tgetLocation ()
 
virtual const token_loc_tgetLocation () const
 
virtual int getFirstLine ()
 
virtual int getLastLine ()
 

Protected Member Functions

void printIndent (int indent) const
 Prints indent number of spaces.
 

Protected Attributes

ASTNodem_parent
 Pointer to parent node of this object. May be NULL.
 
token_loc_t m_location
 Location of this node in the source file.
 

Detailed Description

The base class for all AST node classes.


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