public RuleReplaceTransformer( PlanPhase phase, RuleExpression ruleExpression )
{
super( phase, ruleExpression );
if( subGraphTransformer != null )
graphTransformer = new ReplaceGraphTransformer( subGraphTransformer, ruleExpression.getMatchExpression() );
else if( contractedTransformer != null )
graphTransformer = new ReplaceGraphTransformer( contractedTransformer, ruleExpression.getMatchExpression() );
else
graphTransformer = new ReplaceGraphTransformer( ruleExpression.getMatchExpression() );
}