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.

Version:
$Rev: 1160559 $ $Date: 2011-08-23 14:37:46 +0800 (Tue, 23 Aug 2011) $

Constructor Summary
JexlExpressionParser()
           
JexlExpressionParser(Map<String,Object> vars)
           
 
Method Summary
protected  org.apache.commons.jexl2.Expression createExpression(String expression)
           
 Object evaluate(String expression)
           
 Object getVariable(String name)
           
 Map<String,Object> getVariables()
           
 boolean hasVariable(String name)
           
 String parse(String input)
           
 String parse(String input, boolean trim)
           
 void setVariable(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JexlExpressionParser

public JexlExpressionParser(Map<String,Object> vars)

JexlExpressionParser

public JexlExpressionParser()
Method Detail

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.