|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.christopherschultz.evaluator.parser.ExpressionParser
public class ExpressionParser
A parser to convert string expressions into Expression objects for subsequent evaluation.
Expression
Constructor Summary | |
---|---|
ExpressionParser()
Creates a new ExpressionParser. |
Method Summary | |
---|---|
Expression |
parse(String expression)
Parses the given string expression into a tree of evaluatable Expression objects. |
static Expression |
parseExpression(String expression)
A convenience method to create a new ExpressionParser and return an Expression object for that expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionParser()
Method Detail |
---|
public Expression parse(String expression) throws ParseException
expression
- The string expression to parse.
ParseException
- If the expression was not parsable.public static Expression parseExpression(String expression) throws ParseException
expression
- The string expression to parse.
ParseException
- If the expression was not parsable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |