net.sf.navigator.taglib.el
Class ExpressionEvaluator

java.lang.Object
  extended by net.sf.navigator.taglib.el.ExpressionEvaluator

public class ExpressionEvaluator
extends Object

Utility class to help with the evaluation of JSTL Expression Language. It mainly encapsulates the calls to ExpressionEvaluationManager to ease the use of this class.


Constructor Summary
ExpressionEvaluator(javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.PageContext context)
           
 
Method Summary
 Object eval(String attrName, String attrValue, Class returnClass)
          Evaluate expression in attrValue.
 boolean evalBoolean(String attrName, String attrValue)
           
 int evalInt(String attrName, String attrValue)
           
 long evalLong(String attrName, String attrValue)
           
 String evalString(String attrName, String attrValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluator

public ExpressionEvaluator(javax.servlet.jsp.tagext.Tag tag,
                           javax.servlet.jsp.PageContext context)
Method Detail

eval

public Object eval(String attrName,
                   String attrValue,
                   Class returnClass)
            throws javax.servlet.jsp.JspException
Evaluate expression in attrValue.

Returns:
evaluate expression of attrValue, null if attrValue is null.
Throws:
javax.servlet.jsp.JspException

evalString

public String evalString(String attrName,
                         String attrValue)
                  throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

evalBoolean

public boolean evalBoolean(String attrName,
                           String attrValue)
                    throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

evalLong

public long evalLong(String attrName,
                     String attrValue)
              throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

evalInt

public int evalInt(String attrName,
                   String attrValue)
            throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright © 2003-2007 SourceForge. All Rights Reserved.