Puma Reference Manual | Puma: Puma::PreTreeToken Class Reference |
#include <Puma/PreTreeToken.h>
Public Member Functions | |
PreTreeToken (Token *token) | |
Constructor. | |
void | accept (PreVisitor &v) |
Part of the tree visitor pattern. | |
Token * | startToken () const |
Get the first token of the syntactic construct represented by the sub-tree. | |
Token * | endToken () const |
Get the last token of the syntactic construct represented by the sub-tree. | |
Token * | token () const |
Get the token represented by this node. |
Puma::PreTreeToken::PreTreeToken | ( | Token * | token | ) | [inline] |
Constructor.
token | The preprocessor token. |
void Puma::PreTreeToken::accept | ( | PreVisitor & | v | ) | [inline, virtual] |
Part of the tree visitor pattern.
Calls the node visiting function for PreTreeToken nodes.
Implements Puma::PreTree.
Token* Puma::PreTreeToken::startToken | ( | ) | const [inline, virtual] |
Get the first token of the syntactic construct represented by the sub-tree.
Reimplemented from Puma::PreTree.
Token* Puma::PreTreeToken::endToken | ( | ) | const [inline, virtual] |
Get the last token of the syntactic construct represented by the sub-tree.
Reimplemented from Puma::PreTree.
Token* Puma::PreTreeToken::token | ( | ) | const [inline] |
Get the token represented by this node.