commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jexl/src/java/org/apache/commons/jexl JexlExprResolver.java
Date Thu, 13 Jun 2002 16:09:33 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message