Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

SingleContextRule Class Reference

Used for refactoring statements that are executed only once e.g. statements in if. More...

#include <rtreesinglecontextrule.h>

Inheritance diagram for SingleContextRule:

ContextRule Rule

Public Member Functions

 SingleContextRule (List *iphpInPattern, List *itplOutPattern, List *iphpOutPattern)
 Constructor.

virtual Rulecopy ()
 Copies the rule.

virtual RuleContextgenerateSubcontext (RuleContext *context, const Node::Assignment &assign) const
 Generates a new subcontext.

virtual ostream & print (ostream &os) const
 Writes the rule to the stream.


Detailed Description

Used for refactoring statements that are executed only once e.g. statements in if.

Definition at line 7 of file rtreesinglecontextrule.h.


Constructor & Destructor Documentation

SingleContextRule::SingleContextRule List iphpInPattern,
List itplOutPattern,
List iphpOutPattern
 

Constructor.

Definition at line 4 of file rtreesinglecontextrule.cpp.

Referenced by copy().


Member Function Documentation

Rule * SingleContextRule::copy  )  [virtual]
 

Copies the rule.

Implements Rule.

Definition at line 7 of file rtreesinglecontextrule.cpp.

References List::copyList(), ContextRule::phpInPattern, ContextRule::phpOutPattern, SingleContextRule(), and ContextRule::tplOutPattern.

RuleContext * SingleContextRule::generateSubcontext RuleContext context,
const Node::Assignment assign
const [virtual]
 

Generates a new subcontext.

Implements ContextRule.

Definition at line 14 of file rtreesinglecontextrule.cpp.

ostream & SingleContextRule::print ostream &  os  )  const [virtual]
 

Writes the rule to the stream.

Implements Rule.

Definition at line 18 of file rtreesinglecontextrule.cpp.

References ContextRule::phpInPattern, and List::print().


The documentation for this class was generated from the following files:
Generated on Fri Nov 21 17:54:09 2003 for PHPX by doxygen 1.3.3