Interface ExpressionEvaluator
-
- All Known Subinterfaces:
TypeAwareExpressionEvaluator
- All Known Implementing Classes:
DefaultExpressionEvaluator
public interface ExpressionEvaluatorEvaluate an expression.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilealignToBaseDirectory(java.io.File file)Align a given path to the base directory that can be evaluated by this expression evaluator, if known.java.lang.Objectevaluate(java.lang.String expression)Evaluate an expression.
-
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(java.lang.String expression) throws ExpressionEvaluationExceptionEvaluate an expression.- Parameters:
expression- the expression- Returns:
- the value of the expression
- Throws:
ExpressionEvaluationException- in case of an error.
-
alignToBaseDirectory
java.io.File alignToBaseDirectory(java.io.File file)
Align a given path to the base directory that can be evaluated by this expression evaluator, if known.- Parameters:
file- the file- Returns:
- the aligned file
-
-