Top Description Methods
org.apache.commons.jexl2

public Interface Expression

Known Direct Implementers
org.apache.commons.jexl2.ExpressionImpl

Represents a single JEXL expression.

This simple interface provides access to the underlying expression through Expression#getExpression().

An expression is different than a script - it is simply a reference of an expression.

Since
1.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the JEXL expression
dump
()

Returns the JEXL expression by reconstructing it from the parsed tree.

public Object

Returns:

The result of this evaluation
evaluate
(JexlContext
A JexlContext containing variables.
context
)

Evaluates the expression with the variables contained in the supplied JexlContext.

public String

Returns:

The JEXL expression to be evaluated
getExpression
()

Returns the JEXL expression this Expression was created with.

Method Detail

dumpback to summary
public String dump()

Returns the JEXL expression by reconstructing it from the parsed tree.

Returns:String

the JEXL expression

evaluateback to summary
public Object evaluate(JexlContext context)

Evaluates the expression with the variables contained in the supplied JexlContext.

Parameters
context:JexlContext

A JexlContext containing variables.

Returns:Object

The result of this evaluation

Exceptions
JexlException:
on any error
getExpressionback to summary
public String getExpression()

Returns the JEXL expression this Expression was created with.

Returns:String

The JEXL expression to be evaluated