|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.ExpressionEvaluator
public class ExpressionEvaluator
Combines an ExpressionNode and an ExpressionParser to
actually fill parameter values into an expression and evaluate this.
| Constructor Summary | |
|---|---|
ExpressionEvaluator()
|
|
| Method Summary | |
|---|---|
static Boolean |
calculateBoolean(String exp,
Map<String,Object> set)
Returns the actual value of the expression. |
static Number |
calculateNumber(String exp,
Map<String,Object> set)
Returns the actual value of the expression. |
static void |
main(String[] arg)
Test. |
private static String |
replaceVariables(String exp,
Map<String,Object> set)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionEvaluator()
| Method Detail |
|---|
public static Number calculateNumber(String exp,
Map<String,Object> set)
throws ParseException
TargetDependingParameters are evaluted using the target
definition. Variable names must either be substitutable from the
parameter cluster handed over or specified as constants in the
DTDConstants.CONSTANT section of the merit. The
sequence of parameter substitution first looks up the merit's constant.
Only if the variable is not a defined constant, it is evaluated using the
parameter set.
ParseException
public static Boolean calculateBoolean(String exp,
Map<String,Object> set)
throws ParseException
TargetDependingParameters are evaluted using the target
definition. Variable names must either be substitutable from the
parameter cluster handed over or specified as constants in the
DTDConstants.CONSTANT section of the merit. The
sequence of parameter substitution first looks up the merit's constant.
Only if the variable is not a defined constant, it is evaluated using the
parameter set.
ParseException
private static String replaceVariables(String exp,
Map<String,Object> set)
throws ParseException
ParseException
public static void main(String[] arg)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||