#include <ctree.h>
Inheritance diagram for AttributeValue:
Public Member Functions | |
AttributeValue (Node *ivariable, Node *iattribute, bool iglobal) | |
Constructor. | |
virtual | ~AttributeValue () |
Destructor. | |
virtual SType | getType () const |
Returns type of the node. | |
virtual string | getName () const |
Returs string representing node type or name for List. | |
virtual ostream & | print (ostream &os) const |
Writes node to the stream. | |
virtual ostream & | php (ostream &os) const |
Writes node to the stream as php. | |
virtual bool | match (const Node *p, Assignment &assign, const NameSpace &nameSpace) const |
Matches node p to the node. If node matches sets the assignment. | |
virtual bool | matchToBegining (const List *p, Assignment &assign, const NameSpace &nameSpace) const |
Matches the list to the begining of p. | |
virtual bool | compare (const Node *p) const |
Comares node p to the node. | |
virtual Node * | copy () const |
Copies the node. | |
virtual void | getVariables (VariableList &vlist) const |
Returns list of variables used in the node. | |
virtual string | evaluate (const NameSpace &nameSpace) const |
Computes the value of the expression (only basic atihmetic and string operations). | |
Protected Member Functions | |
virtual Node * | substitute (const Assignment &assign) |
Substitutes variables in the node accordingly to the given assignment. | |
Protected Attributes | |
Node * | variable |
The name. | |
Node * | attribute |
The attribute conected with the name. | |
const bool | global |
Is the name global. |
Defines a class of node, that can return the value of the given attribute of he given name. Used in ActionRule. These nodes try to be invisible to all functions.
Definition at line 95 of file ctree.h.
|
Constructor.
Definition at line 106 of file ctree.h. References attribute, global, and variable. Referenced by copy(). |
|
Destructor.
|
|
Comares node p to the node.
Implements Node. |
|
Copies the node.
Implements Node. Definition at line 142 of file ctree.h. References attribute, AttributeValue(), Node::copy(), global, and variable. |
|
Computes the value of the expression (only basic atihmetic and string operations).
Implements Node. Definition at line 150 of file ctree.h. References attribute, NameSpace::getAttributeValue(), global, Node::toString(), and variable. |
|
Returs string representing node type or name for List.
Implements Node. |
|
Returns type of the node.
Implements Node. Definition at line 114 of file ctree.h. References SType. |
|
Returns list of variables used in the node.
Implements Node. |
|
Matches node p to the node. If node matches sets the assignment.
Implements Node. |
|
Matches the list to the begining of p.
Implements Node. |
|
Writes node to the stream as php.
Implements Node. |
|
Writes node to the stream.
Implements Node. Definition at line 118 of file ctree.h. References attribute, Node::print(), and variable. |
|
Substitutes variables in the node accordingly to the given assignment.
Implements Node. Definition at line 156 of file ctree.h. References attribute, Node::substituteNode, and variable. |
|
The attribute conected with the name.
Definition at line 101 of file ctree.h. Referenced by AttributeValue(), copy(), evaluate(), print(), substitute(), and ~AttributeValue(). |
|
Is the name global.
Definition at line 103 of file ctree.h. Referenced by AttributeValue(), copy(), and evaluate(). |
|
The name.
Definition at line 99 of file ctree.h. Referenced by AttributeValue(), copy(), evaluate(), print(), substitute(), and ~AttributeValue(). |