Package org.apache.catalina.ssi
Class ExpressionParseTree
- java.lang.Object
-
- org.apache.catalina.ssi.ExpressionParseTree
-
public class ExpressionParseTree extends java.lang.ObjectRepresents a parsed expression.- Author:
- Paul Speed
-
-
Constructor Summary
Constructors Constructor Description ExpressionParseTree(java.lang.String expr, SSIMediator ssiMediator)Creates a new parse tree for the specified expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluateTree()Evaluates the tree and returns true or false.
-
-
-
Constructor Detail
-
ExpressionParseTree
public ExpressionParseTree(java.lang.String expr, SSIMediator ssiMediator) throws java.text.ParseExceptionCreates a new parse tree for the specified expression.- Parameters:
expr- The expression stringssiMediator- Used to evaluated the expressions- Throws:
java.text.ParseException- a parsing error occurred
-
-
Method Detail
-
evaluateTree
public boolean evaluateTree() throws SSIStopProcessingExceptionEvaluates the tree and returns true or false. The specified SSIMediator is used to resolve variable references.- Returns:
- the evaluation result
- Throws:
SSIStopProcessingException- If an error occurs evaluating the tree
-
-