net.sourceforge.templat.expr
Class Expression
java.lang.Object
net.sourceforge.templat.expr.Expression
public class Expression
- extends Object
Contains static methods to evaluate an expression within a
template statement.
- Author:
- Chris Mosher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Expression
public Expression()
eval
public static Object eval(String expr,
ContextStack stackContext)
throws TemplateParsingException
- Evaluates the given expression, using the given context stack.
- Parameters:
expr
- expression to evaluatestackContext
- context stack
- Returns:
- the result of evaluating the expression
- Throws:
TemplateParsingException