Class DefaultExpressionEvaluator
- java.lang.Object
-
- org.codehaus.plexus.component.configurator.expression.DefaultExpressionEvaluator
-
- All Implemented Interfaces:
ExpressionEvaluator
public class DefaultExpressionEvaluator extends Object implements ExpressionEvaluator
Evaluate an expression.- Author:
- Brett Porter
-
-
Field Summary
-
Fields inherited from interface org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultExpressionEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
alignToBaseDirectory(File file)
Align a given path to the base directory that can be evaluated by this expression evaluator, if known.Object
evaluate(String expression)
Evaluate an expression.
-
-
-
Method Detail
-
evaluate
public Object evaluate(String expression)
Evaluate an expression.- Specified by:
evaluate
in interfaceExpressionEvaluator
- Parameters:
expression
- the expression- Returns:
- the value of the expression
-
alignToBaseDirectory
public File alignToBaseDirectory(File file)
Description copied from interface:ExpressionEvaluator
Align a given path to the base directory that can be evaluated by this expression evaluator, if known.- Specified by:
alignToBaseDirectory
in interfaceExpressionEvaluator
- Parameters:
file
- the file- Returns:
- the aligned file
-
-