org.objectweb.medor.expression.parser.string
Class ExpressionParser

java.lang.Object
  extended byorg.objectweb.medor.expression.parser.string.ExpressionParser

public class ExpressionParser
extends java.lang.Object

This class is a string parser of expressions.

Author:
P. Dechamboux, A.Lefebvre, S.Chassande-Barrioz

Constructor Summary
ExpressionParser()
           
 
Method Summary
 Expression parse(java.lang.String exprstr, ParameterTypeProvider ptp)
          Produces a MEDOR Expression from a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionParser

public ExpressionParser()
Method Detail

parse

public Expression parse(java.lang.String exprstr,
                        ParameterTypeProvider ptp)
                 throws ExpressionException
Produces a MEDOR Expression from a string.

Parameters:
exprstr - is the string expression to parse
ptp - is the parameter type provider. It permits to find the type of parameter found in the expression. If the expression does not contain parameter, no ParameterTypeProvider is required.
Returns:
the corresponding MEDOR Expression
Throws:
ExpressionException