#include <rtreesubstitutionrule.h>
Inheritance diagram for SubstitutionRule:

Public Member Functions | |
| SubstitutionRule (List *iphpInPattern, List *itplOutPattern, List *iphpOutPattern) | |
| Constructor. | |
| 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 | |
| List * | tplOutPattern |
| tpl out pattern | |
| List * | phpOutPattern |
| php out pattern | |
When phpInPattern matches the input, the out patterns are put to the out lists, with appropriate substitutions made.
Definition at line 11 of file rtreesubstitutionrule.h.
|
||||||||||||||||
|
Constructor.
Definition at line 3 of file rtreesubstitutionrule.cpp. Referenced by copy(). |
|
|
Copies the rule.
Implements Rule. Definition at line 26 of file rtreesubstitutionrule.cpp. References List::copyList(), phpInPattern, phpOutPattern, SubstitutionRule(), and tplOutPattern. |
|
||||||||||||||||||||||||
|
Executer the rule on php.
Implements Rule. Definition at line 6 of file rtreesubstitutionrule.cpp. References List::append(), RuleContext::assignVariableNames(), List::copy(), List::getLength(), RuleContext::getNameSpace(), List::matchToBegining(), phpInPattern, phpOutPattern, List::substitute(), and tplOutPattern. |
|
|
Writes the rule to the stream.
Implements Rule. Definition at line 39 of file rtreesubstitutionrule.cpp. References phpInPattern, and List::print(). |
|
|
Substitutes variables used in the rule.
Implements Rule. Definition at line 32 of file rtreesubstitutionrule.cpp. References phpInPattern, phpOutPattern, List::substitute(), and tplOutPattern. |
|
|
php in pattern
Definition at line 13 of file rtreesubstitutionrule.h. Referenced by copy(), execute(), print(), and substitute(). |
|
|
php out pattern
Definition at line 17 of file rtreesubstitutionrule.h. Referenced by copy(), execute(), and substitute(). |
|
|
tpl out pattern
Definition at line 15 of file rtreesubstitutionrule.h. Referenced by copy(), execute(), and substitute(). |
1.3.3