net.sourceforge.templat.expr
Class Expression

java.lang.Object
  extended by net.sourceforge.templat.expr.Expression

public class Expression
extends Object

Contains static methods to evaluate an expression within a template statement.

Author:
Chris Mosher

Constructor Summary
Expression()
           
 
Method Summary
static Object eval(String expr, ContextStack stackContext)
          Evaluates the given expression, using the given context stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expression

public Expression()
Method Detail

eval

public static Object eval(String expr,
                          ContextStack stackContext)
                   throws TemplateParsingException
Evaluates the given expression, using the given context stack.

Parameters:
expr - expression to evaluate
stackContext - context stack
Returns:
the result of evaluating the expression
Throws:
TemplateParsingException