#include <rtreeactionrule.h>
Inheritance diagram for ActionRule:
Public Member Functions | |
ActionRule (List *iphpInPattern, ActionList *iactions) | |
Constructor. | |
virtual | ~ActionRule () |
virtual bool | execute (RuleContext *context, List *phpIn, List *phpOut, List *tplOut, Node::Assignment &assign) const |
Executer the rule on php. | |
virtual Rule * | copy () |
Copies the rule. | |
virtual Rule * | substitute (const Node::Assignment &assign) |
Substitutes variables used in the rule. | |
virtual ostream & | print (ostream &os) const |
Writes the rule to the stream. | |
Private Attributes | |
List * | phpInPattern |
php in pattern | |
ActionList * | actions |
action list |
Definition at line 64 of file rtreeactionrule.h.
|
Constructor.
Definition at line 94 of file rtreeactionrule.cpp. Referenced by copy(). |
|
Definition at line 97 of file rtreeactionrule.cpp. References actions, and phpInPattern. |
|
Copies the rule.
Implements Rule. Definition at line 116 of file rtreeactionrule.cpp. References ActionRule(), actions, ActionList::copy(), List::copyList(), and phpInPattern. |
|
Executer the rule on php.
Implements Rule. Definition at line 102 of file rtreeactionrule.cpp. References actions, ActionList::copy(), ActionList::execute(), List::getLength(), RuleContext::getNameSpace(), List::matchToBegining(), phpInPattern, List::push_back(), and ActionList::substitute(). |
|
Writes the rule to the stream.
Implements Rule. Definition at line 126 of file rtreeactionrule.cpp. References phpInPattern, and List::print(). |
|
Substitutes variables used in the rule.
Implements Rule. Definition at line 120 of file rtreeactionrule.cpp. References actions, phpInPattern, ActionList::substitute(), and List::substitute(). |
|
action list
Definition at line 68 of file rtreeactionrule.h. Referenced by copy(), execute(), substitute(), and ~ActionRule(). |
|
php in pattern
Definition at line 66 of file rtreeactionrule.h. Referenced by copy(), execute(), print(), substitute(), and ~ActionRule(). |