org.apache.geronimo.genesis.util
Class ExpressionParser

java.lang.Object
  extended by 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
           
 
Constructor Summary
ExpressionParser()
           
ExpressionParser(Map vars)
           
 
Method Summary
 void addVariables(Map map)
           
protected  org.apache.commons.jexl.Expression createExpression(String expression)
           
 Object evaluate(String expression)
           
 Object getVariable(Object name)
           
 Map getVariables()
           
 String parse(String input)
           
 String parse(String input, boolean trim)
           
 Object setVariable(Object name, Object value)
           
 Object unsetVariable(Object name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected org.apache.commons.jexl.JexlContext context
Constructor Detail

ExpressionParser

public ExpressionParser(Map vars)

ExpressionParser

public ExpressionParser()
Method Detail

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.