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.
- Version:
- $Rev: 1160559 $ $Date: 2011-08-23 14:37:46 +0800 (Tue, 23 Aug 2011) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JexlExpressionParser
public JexlExpressionParser(Map<String,Object> vars)
JexlExpressionParser
public JexlExpressionParser()
hasVariable
public boolean hasVariable(String name)
getVariable
public Object getVariable(String name)
setVariable
public void setVariable(String name,
Object value)
getVariables
public Map<String,Object> getVariables()
createExpression
protected org.apache.commons.jexl2.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-2013 The Apache Geronimo development community. All Rights Reserved.