Puma Reference Manual Puma::CT_DelayedParse Class Reference



Puma::CT_DelayedParse Class Reference

Tree node representing a piece of code to be parsed delayed. More...

#include <Puma/DelayedParseTree.h>

Inheritance diagram for Puma::CT_DelayedParse:
Inheritance graph

List of all members.

Public Member Functions

const char * NodeName () const
 Get the name of the node.
CT_DelayedParseIsDelayedParse ()
 Get a pointer to this CT_DelayedParse.
int Sons () const
 Get the number of sons.
CTreeSon (int n) const
 Get the n-th son.
void ReplaceSon (CTree *old_son, CTree *new_son)
 Replace a son.
CRecordClass () const
 Get the outermost class for this delayed code fragment.
CStructureScope () const
 Get the scope of the delayed code fragment.
TokenProvider::State State () const
 Get the token stream state of the delayed code fragment.
void Class (CRecord *record)
 Set the outermost class for this delayed code fragment.
void Scope (CStructure *scope)
 Set the scope of the delayed code fragment.
void State (TokenProvider::State state)
 Set the token stream state of the delayed code fragment.

Static Public Member Functions

static const char * NodeId ()
 Get the identifier for this node type.

Protected Member Functions

 CT_DelayedParse (Token *s)
 Constructor.
 CT_DelayedParse (Token *s, Token *e)
 Constructor.

Detailed Description

Tree node representing a piece of code to be parsed delayed.


Constructor & Destructor Documentation

Puma::CT_DelayedParse::CT_DelayedParse ( Token s) [inline, protected]

Constructor.

Parameters:
sStart token.
Puma::CT_DelayedParse::CT_DelayedParse ( Token s,
Token e 
) [inline, protected]

Constructor.

Parameters:
sStart token.
eEnd token.

Member Function Documentation

Get the outermost class for this delayed code fragment.

void Puma::CT_DelayedParse::Class ( CRecord record) [inline]

Set the outermost class for this delayed code fragment.

Parameters:
recordThe outermost class.

Get a pointer to this CT_DelayedParse.

Returns:
The CT_DelayedParse pointer.

Reimplemented from Puma::CTree.

void Puma::CT_DelayedParse::ReplaceSon ( CTree old_son,
CTree new_son 
) [inline, virtual]

Replace a son.

Parameters:
old_sonThe son to replace.
new_sonThe new son.

Reimplemented from Puma::CTree.

Get the scope of the delayed code fragment.

void Puma::CT_DelayedParse::Scope ( CStructure scope) [inline]

Set the scope of the delayed code fragment.

Parameters:
scopeThe scope.
CTree* Puma::CT_DelayedParse::Son ( int  n) const [inline, virtual]

Get the n-th son.

Parameters:
nThe index of the son.
Returns:
The n-th son or NULL.

Reimplemented from Puma::CTree.

int Puma::CT_DelayedParse::Sons ( ) const [inline, virtual]

Get the number of sons.

Implements Puma::CTree.

Get the token stream state of the delayed code fragment.

Set the token stream state of the delayed code fragment.

Parameters:
stateThe token stream state.