org.apache.geronimo.genesis.util
Class ExpressionParser
java.lang.Object
org.apache.geronimo.genesis.util.ExpressionParser
public class ExpressionParser
- extends Object
Parses expressions using Commons Jexl.
- Version:
- $Rev: 462660 $ $Date: 2006-10-10 18:57:41 -0700 (Tue, 10 Oct 2006) $
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
ExpressionParser
public ExpressionParser(Map vars)
ExpressionParser
public ExpressionParser()
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)
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-2007 Apache Software Foundation. All Rights Reserved.