org.codehaus.plexus.component.configurator.expression
Interface ExpressionEvaluator

All Known Subinterfaces:
TypeAwareExpressionEvaluator
All Known Implementing Classes:
DefaultExpressionEvaluator

public interface ExpressionEvaluator

Evaluate an expression.

Version:
$Id$
Author:
Brett Porter

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 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.
 

Field Detail

ROLE

static final java.lang.String ROLE
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

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


Copyright © 2001-2011 Codehaus. All Rights Reserved.