org.codehaus.mojo.pluginsupport.util
Class ExpressionParser
java.lang.Object
org.codehaus.mojo.pluginsupport.util.ExpressionParser
public class ExpressionParser
- extends Object
Parses expressions using Commons Jexl.
- Version:
- $Id: ExpressionParser.java 6588 2008-03-28 12:22:57Z bentmann $
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 © 2011 Codehaus. All Rights Reserved.