You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ge...@apache.org on 2002/06/13 18:09:33 UTC
cvs commit: jakarta-commons-sandbox/jexl/src/java/org/apache/commons/jexl JexlExprResolver.java
geirm 2002/06/13 09:09:33
Added: jexl/src/java/org/apache/commons/jexl JexlExprResolver.java
Log:
interface for custom expression resolvers
Revision Changes Path
1.1 jakarta-commons-sandbox/jexl/src/java/org/apache/commons/jexl/JexlExprResolver.java
Index: JexlExprResolver.java
===================================================================
package org.apache.commons.jexl;
/**
* A Resolver allows custom resolution of the expression, and can be
* added in front of the jexl engine, or after in the evaluation
*
* @author <a href="mailto:geirm@adeptra.com">Geir Magnusson Jr.</a>
* @version $Id: JexlExprResolver.java,v 1.1 2002/06/13 16:09:32 geirm Exp $
*/
public interface JexlExprResolver
{
public static final Object NO_VALUE = new Object();
/**
* evaluates an expression against the context
*
* @param context current data context
* @param expression expression to evauluate
* @return value (may be null) po the NO_VALUE object to
* indicate no resolution.
*/
Object evaluate(JexlContext context, String expression);
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>