org.apache.geronimo.system.configuration.condition
Class JexlExpressionParser
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected org.apache.commons.jexl.JexlContext context
JexlExpressionParser
public JexlExpressionParser(Map vars)
JexlExpressionParser
public JexlExpressionParser()
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.