org.objectweb.medor.expression.parser.string

Class ExpressionParser


public class ExpressionParser
extends java.lang.Object

This class is a string parser of expressions.

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

Method Summary

Expression
parse(String exprstr, ParameterTypeProvider ptp)
Produces a MEDOR Expression from a string.

Method Details

parse

public Expression parse(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 -