evaluate_doubles

Evaluates the expression and converts the result to double[].
This is useful if the result is an object array in which case each element
is converted to double.
The expression string must have been given
and compiled beforehand by compile(String expression).

Parameters:

context - is the evaluation context

Returns:

the evaluation result

Throws:

EvaluationException - on evaluation error

chemaxon.nfunk.jep.ParseException

evaluate_boolean

Evaluates the expression and converts the result boolean.
Boolean return values are returned as double: 1.0 for true
and 0.0 for false. This function returns true for a value
greater than 0.5, false otherwise. This means that for
boolean expressions the return value will be OK (and we also
eliminated floating-point comparison inaccuracy :-).
The expression string must have been given
and compiled beforehand by compile(String expression).

Parameters:

context - is the evaluation context

Returns:

the evaluation result

Throws:

EvaluationException - on evaluation error

chemaxon.nfunk.jep.ParseException

evaluate_booleans

Evaluates the expression and converts the result to boolean[].
This is useful if the result is an object array in which case each element
is converted to boolean.
The expression string must have been given
and compiled beforehand by compile(String expression).

Parameters:

context - is the evaluation context

Returns:

the evaluation result

Throws:

EvaluationException - on evaluation error

chemaxon.nfunk.jep.ParseException

getLogicalValue

public static int getLogicalValue(java.lang.Object result)

Returns the logical correspondent of the specified result object:
TRUE, FALSE or UNDECIDED.