ExpressionParseTree (Apache Tomcat 9.0.117 API Documentation)
Description: declaration: package: org.apache.catalina.ssi, class: ExpressionParseTree

# Class ExpressionParseTree

java.lang.Object
org.apache.catalina.ssi.ExpressionParseTree

public class ExpressionParseTree extends Object
Represents a parsed expression.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ExpressionParseTree(String expr, SSIMediator ssiMediator)`
  Creates a new parse tree for the specified expression.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `evaluateTree()`
  Evaluates the tree and returns true or false.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ExpressionParseTree

    public ExpressionParseTree(String expr, SSIMediator ssiMediator) throws ParseException
    Creates a new parse tree for the specified expression.
    Parameters:
      `expr` - The expression string
      `ssiMediator` - Used to evaluate the expressions
    Throws:
      `ParseException` - a parsing error occurred

- ## Method Details

  - ### evaluateTree

    public boolean evaluateTree() throws SSIStopProcessingException
    Evaluates 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