org.apache.commons.jexl
Class ExpressionFactory

java.lang.Object
  extended byorg.apache.commons.jexl.ExpressionFactory

public class ExpressionFactory
extends java.lang.Object

Used to create Expression objects

Version:
$Id: ExpressionFactory.java,v 1.3 2003/10/09 21:28:55 rdonkin Exp $
Author:
Geir Magnusson Jr.

Field Summary
protected static ExpressionFactory ef
          We Be Singleton
protected static Parser parser
          our parser - we share it
 
Constructor Summary
private ExpressionFactory()
           
 
Method Summary
static Expression createExpression(java.lang.String expression)
           
protected  Expression createNewExpression(java.lang.String expression)
          Creates a new Expression based on the expression string.
protected static ExpressionFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

protected static Parser parser
our parser - we share it


ef

protected static ExpressionFactory ef
We Be Singleton

Constructor Detail

ExpressionFactory

private ExpressionFactory()
Method Detail

createExpression

public static Expression createExpression(java.lang.String expression)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

protected static ExpressionFactory getInstance()

createNewExpression

protected Expression createNewExpression(java.lang.String expression)
                                  throws java.lang.Exception
Creates a new Expression based on the expression string.

Returns:
Expression
Throws:
java.lang.Exception - for a variety of reasons - mostly malformed Jexl expression