cfront::ScopeNode Class Reference

#include <ScopeNode.hpp>

Inheritance diagram for cfront::ScopeNode:

Inheritance graph
[legend]
Collaboration diagram for cfront::ScopeNode:

Collaboration graph
[legend]

Public Member Functions

 ScopeNode (const ScopeNode &other)
 ScopeNode ()
virtual ~ScopeNode ()
EnvironmentgetEnv () const
void setEnv (Environment *env)
virtual void initialize (int t, const ANTLR_USE_NAMESPACE(std) string &txt)
virtual void initialize (ANTLR_USE_NAMESPACE(antlr) RefToken t)
virtual void initialize (RefScopeNode ast)
virtual ANTLR_USE_NAMESPACE (antlr) RefAST clone()

Static Public Member Functions

static ANTLR_USE_NAMESPACE (antlr) RefAST factory()

Private Attributes

Environmentenv_

Detailed Description

ANTLR custom AST node class to represents the scopes.

This class is responsible for deleting the own Environment.

The list of the syntactic element that used this node and the scope is as follows:

Definition at line 67 of file ScopeNode.hpp.


Constructor & Destructor Documentation

cfront::ScopeNode::ScopeNode ( const ScopeNode other  )  [inline]

The copy constructor.

Definition at line 71 of file ScopeNode.hpp.

cfront::ScopeNode::ScopeNode (  )  [inline]

The default constructor.

Definition at line 75 of file ScopeNode.hpp.

virtual cfront::ScopeNode::~ScopeNode (  )  [inline, virtual]

Definition at line 77 of file ScopeNode.hpp.


Member Function Documentation

Environment* cfront::ScopeNode::getEnv (  )  const [inline]

Definition at line 84 of file ScopeNode.hpp.

void cfront::ScopeNode::setEnv ( Environment env  )  [inline]

Definition at line 89 of file ScopeNode.hpp.

virtual void cfront::ScopeNode::initialize ( int  t,
const ANTLR_USE_NAMESPACE(std) string &  txt 
) [inline, virtual]

Reimplemented from cfront::LocationNode.

Definition at line 94 of file ScopeNode.hpp.

References cfront::LocationNode::initialize().

virtual void cfront::ScopeNode::initialize ( ANTLR_USE_NAMESPACE(antlr) RefToken  t  )  [inline, virtual]

Reimplemented from cfront::LocationNode.

Definition at line 99 of file ScopeNode.hpp.

References cfront::LocationNode::initialize().

virtual void cfront::ScopeNode::initialize ( RefScopeNode  ast  )  [inline, virtual]

Definition at line 104 of file ScopeNode.hpp.

References cfront::LocationNode::initialize().

virtual cfront::ScopeNode::ANTLR_USE_NAMESPACE ( antlr   )  [inline, virtual]

Provide a clone of the node (no sibling/child pointers are copied)

Reimplemented from cfront::LocationNode.

Definition at line 111 of file ScopeNode.hpp.

References cfront::ANTLR_USE_NAMESPACE().

static cfront::ScopeNode::ANTLR_USE_NAMESPACE ( antlr   )  [inline, static, virtual]

Provide a clone of the node (no sibling/child pointers are copied).

Reimplemented from cfront::LocationNode.

Definition at line 115 of file ScopeNode.hpp.

References cfront::ANTLR_USE_NAMESPACE().


Field Documentation

Definition at line 121 of file ScopeNode.hpp.


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

Generated on Tue Mar 31 20:19:53 2009 for ctrump by  doxygen 1.5.6