#include <rtreecontextrule.h>
Inheritance diagram for ContextRule:

Public Member Functions | |
| ContextRule (List *iphpInPattern, List *itplOutPattern, List *iphpOutPattern) | |
| constructor | |
| virtual | ~ContextRule () |
| destructor | |
| virtual bool | execute (RuleContext *context, List *phpIn, List *phpOut, List *tplOut, Node::Assignment &assign) const |
| Executer the rule on php. | |
| virtual Rule * | substitute (const Node::Assignment &assign) |
| Substitutes variables used in the rule. | |
| virtual RuleContext * | generateSubcontext (RuleContext *context, const Node::Assignment &assign) const=0 |
| Generates a new subcontext. | |
Protected Attributes | |
| List * | phpInPattern |
| php in pattern | |
| List * | tplOutPattern |
| tpl in pattern | |
| List * | phpOutPattern |
| php out pattern | |
Definition at line 7 of file rtreecontextrule.h.
|
||||||||||||||||
|
constructor
Definition at line 4 of file rtreecontextrule.cpp. |
|
|
destructor
Definition at line 7 of file rtreecontextrule.cpp. References phpInPattern, phpOutPattern, and tplOutPattern. |
|
||||||||||||||||||||||||
|
Executer the rule on php.
Implements Rule. Definition at line 21 of file rtreecontextrule.cpp. References RuleContext::assignVariableNames(), StatementList::copy(), CTemplate, CVariable, RuleContext::execute(), RuleContext::processTemplate(), List::push_back(), List::substitute(), and substituteNode(). |
|
||||||||||||
|
Generates a new subcontext.
Implemented in MultiContextRule, and SingleContextRule. |
|
|
Substitutes variables used in the rule.
Implements Rule. Definition at line 13 of file rtreecontextrule.cpp. References phpInPattern, phpOutPattern, List::substitute(), and tplOutPattern. |
|
|
php in pattern
Definition at line 10 of file rtreecontextrule.h. Referenced by SingleContextRule::copy(), MultiContextRule::copy(), SingleContextRule::print(), MultiContextRule::print(), substitute(), and ~ContextRule(). |
|
|
php out pattern
Definition at line 20 of file rtreecontextrule.h. Referenced by SingleContextRule::copy(), MultiContextRule::copy(), substitute(), and ~ContextRule(). |
|
|
tpl in pattern Folowing items may appear in this list:
Definition at line 18 of file rtreecontextrule.h. Referenced by SingleContextRule::copy(), MultiContextRule::copy(), substitute(), and ~ContextRule(). |
1.3.3