Puma Reference Manual | Puma::CT_DelayedParse Class Reference |
Tree node representing a piece of code to be parsed delayed. More...
#include <Puma/DelayedParseTree.h>
Public Member Functions | |
const char * | NodeName () const |
Get the name of the node. | |
CT_DelayedParse * | IsDelayedParse () |
Get a pointer to this CT_DelayedParse. | |
int | Sons () const |
Get the number of sons. | |
CTree * | Son (int n) const |
Get the n-th son. | |
void | ReplaceSon (CTree *old_son, CTree *new_son) |
Replace a son. | |
CRecord * | Class () const |
Get the outermost class for this delayed code fragment. | |
CStructure * | Scope () 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. |
Tree node representing a piece of code to be parsed delayed.
Puma::CT_DelayedParse::CT_DelayedParse | ( | Token * | s | ) | [inline, protected] |
Constructor.
s | Start token. |
Puma::CT_DelayedParse::CT_DelayedParse | ( | Token * | s, |
Token * | e | ||
) | [inline, protected] |
Constructor.
s | Start token. |
e | End token. |
CRecord* Puma::CT_DelayedParse::Class | ( | ) | const [inline] |
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.
record | The outermost class. |
CT_DelayedParse* Puma::CT_DelayedParse::IsDelayedParse | ( | ) | [inline, virtual] |
Get a pointer to this CT_DelayedParse.
Reimplemented from Puma::CTree.
static const char* Puma::CT_DelayedParse::NodeId | ( | ) | [static] |
Get the identifier for this node type.
Can be compared with NodeName().
Reimplemented in Puma::CT_DelayedParseConstInit, Puma::CT_DelayedParseSkippedFctBody, Puma::CT_DelayedParseFctBody, Puma::CT_DelayedParsePureSpec, Puma::CT_DelayedParseCtorInit, Puma::CT_DelayedParseFctTryBlock, and Puma::CT_DelayedParseParamInit.
const char* Puma::CT_DelayedParse::NodeName | ( | ) | const [inline, virtual] |
Get the name of the node.
Can be compared with NodeId().
Implements Puma::CTree.
Reimplemented in Puma::CT_DelayedParseConstInit, Puma::CT_DelayedParseSkippedFctBody, Puma::CT_DelayedParseFctBody, Puma::CT_DelayedParsePureSpec, Puma::CT_DelayedParseCtorInit, Puma::CT_DelayedParseFctTryBlock, and Puma::CT_DelayedParseParamInit.
void Puma::CT_DelayedParse::ReplaceSon | ( | CTree * | old_son, |
CTree * | new_son | ||
) | [inline, virtual] |
Replace a son.
old_son | The son to replace. |
new_son | The new son. |
Reimplemented from Puma::CTree.
CStructure* Puma::CT_DelayedParse::Scope | ( | ) | const [inline] |
Get the scope of the delayed code fragment.
void Puma::CT_DelayedParse::Scope | ( | CStructure * | scope | ) | [inline] |
Set the scope of the delayed code fragment.
scope | The scope. |
CTree* Puma::CT_DelayedParse::Son | ( | int | n | ) | const [inline, virtual] |
Get the n-th son.
n | The index of the son. |
Reimplemented from Puma::CTree.
int Puma::CT_DelayedParse::Sons | ( | ) | const [inline, virtual] |
Get the number of sons.
Implements Puma::CTree.
TokenProvider::State Puma::CT_DelayedParse::State | ( | ) | const [inline] |
Get the token stream state of the delayed code fragment.
void Puma::CT_DelayedParse::State | ( | TokenProvider::State | state | ) | [inline] |
Set the token stream state of the delayed code fragment.
state | The token stream state. |