org.apache.geronimo.system.configuration.condition
Class JexlExpressionParser

java.lang.Object
  extended by org.apache.geronimo.system.configuration.condition.JexlExpressionParser

public class JexlExpressionParser
extends Object

Parses expressions using Commons Jexl.


Field Summary
protected  org.apache.commons.jexl.JexlContext context
           
 
Constructor Summary
JexlExpressionParser()
           
JexlExpressionParser(Map vars)
           
 
Method Summary
 void addVariables(Map map)
           
protected  org.apache.commons.jexl.Expression createExpression(String expression)
           
 Object evaluate(String expression)
           
 Object getVariable(Object name)
           
 Map getVariables()
           
 String parse(String input)
           
 String parse(String input, boolean trim)
           
 Object setVariable(Object name, Object value)
           
 void setVariables(Map map)
           
 Object unsetVariable(Object name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected org.apache.commons.jexl.JexlContext context
Constructor Detail

JexlExpressionParser

public JexlExpressionParser(Map vars)

JexlExpressionParser

public JexlExpressionParser()
Method Detail

getVariables

public Map getVariables()

getVariable

public Object getVariable(Object name)

setVariable

public Object setVariable(Object name,
                          Object value)

unsetVariable

public Object unsetVariable(Object name)

addVariables

public void addVariables(Map map)

setVariables

public void setVariables(Map map)

createExpression

protected org.apache.commons.jexl.Expression createExpression(String expression)
                                                       throws Exception
Throws:
Exception

evaluate

public Object evaluate(String expression)
                throws Exception
Throws:
Exception

parse

public String parse(String input)

parse

public String parse(String input,
                    boolean trim)


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.