#include <rtreemulticontextrule.h>
Inheritance diagram for MultiContextRule:
Public Member Functions | |
MultiContextRule (List *iphpInPattern, Variable *icontrolVariable, List *itplOutPattern, List *iphpOutPattern) | |
Constructor. | |
virtual | ~MultiContextRule () |
virtual Rule * | copy () |
Copies the rule. | |
virtual RuleContext * | generateSubcontext (RuleContext *context, const Node::Assignment &assign) const |
Generates a new subcontext. | |
virtual ostream & | print (ostream &os) const |
Writes the rule to the stream. | |
Private Attributes | |
Variable * | controlVariable |
The control variable. |
Definition at line 8 of file rtreemulticontextrule.h.
|
Constructor.
Definition at line 4 of file rtreemulticontextrule.cpp. Referenced by copy(). |
|
Definition at line 7 of file rtreemulticontextrule.cpp. References controlVariable. |
|
Copies the rule.
Implements Rule. Definition at line 32 of file rtreemulticontextrule.cpp. References controlVariable, Variable::copy(), List::copyList(), MultiContextRule(), ContextRule::phpInPattern, ContextRule::phpOutPattern, and ContextRule::tplOutPattern. |
|
Generates a new subcontext.
Implements ContextRule. Definition at line 11 of file rtreemulticontextrule.cpp. References controlVariable, CPHPVariable, Variable::getId(), Node::getName(), and Unary::getStatement1(). |
|
Writes the rule to the stream.
Implements Rule. Definition at line 26 of file rtreemulticontextrule.cpp. References ContextRule::phpInPattern, and List::print(). |
|
The control variable.
Definition at line 10 of file rtreemulticontextrule.h. Referenced by copy(), generateSubcontext(), and ~MultiContextRule(). |