Interface ExpressionEvaluator
-
- All Known Subinterfaces:
TypeAwareExpressionEvaluator
- All Known Implementing Classes:
DefaultExpressionEvaluator
public interface ExpressionEvaluator
Evaluate an expression.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.java.lang.Object
evaluate(java.lang.String expression)
Evaluate an expression.
-
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(java.lang.String expression) throws ExpressionEvaluationException
Evaluate 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
-
-