org.objectweb.medor.expression.parser.lib
Class ReplaceStringPlusByConcat

java.lang.Object
  extended byorg.objectweb.medor.expression.parser.lib.ReplaceStringPlusByConcat

public class ReplaceStringPlusByConcat
extends java.lang.Object

This class is a rewriter of Expression, replacing the plus operator between string to the concat operator.

Author:
S.Chassande-Barrioz

Constructor Summary
ReplaceStringPlusByConcat()
           
 
Method Summary
 Expression rewrite(Expression e)
          replaces the plus operator between string to the concat operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceStringPlusByConcat

public ReplaceStringPlusByConcat()
Method Detail

rewrite

public Expression rewrite(Expression e)
                   throws MalformedExpressionException
replaces the plus operator between string to the concat operator.

Parameters:
e - is the expression to rewrite
Returns:
the new expression
Throws:
MalformedExpressionException