Interface IExpressionVisitor


public interface IExpressionVisitor
Expression visitor interface that allows traversal of an Expression or a Condition.

The responsibility for the traversal algorithm is within the visitor. Have a look at Expressions and Conditions section for an example.

  • Method Details

    • visitLiteral

      void visitLiteral(@NotNull ExpressionValue value)
      Visits a 'literal' value.
      Parameters:
      value - the literal value.
      See Also:
    • visitValueReference

      void visitValueReference(@NotNull String propertyPath)
      Visits a reference to a property.
      Parameters:
      propertyPath - the path to the property.
      See Also:
    • visitAnd

      void visitAnd(@NotNull List<@NotNull Expression> conditions)
      Visits a logical and operation.
      Parameters:
      conditions - the list of conditions.
      See Also:
    • visitOr

      void visitOr(@NotNull List<@NotNull Expression> conditions)
      Visits a logical or operation.
      Parameters:
      conditions - the list of conditions.
      See Also:
    • visitNot

      void visitNot(@NotNull Expression condition)
      Visits a logical 'not' operation.
      Parameters:
      condition - the condition that is inverted.
      See Also:
    • visitEqual

      void visitEqual(@NotNull Expression left, @NotNull Expression right)
      Visits an 'equal' condition.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitNotEqual

      void visitNotEqual(@NotNull Expression left, @NotNull Expression right)
      Visits a 'not equal' condition.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitGt

      void visitGt(@NotNull Expression left, @NotNull Expression right)
      Visits a 'greater than' condition.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitGte

      void visitGte(@NotNull Expression left, @NotNull Expression right)
      Visits a 'greater than or equal' condition.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitLt

      void visitLt(@NotNull Expression left, @NotNull Expression right)
      Visits a 'less than' condition.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitLte

      void visitLte(@NotNull Expression left, @NotNull Expression right)
      Visits a 'less than or equal' condition.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitBBox

      void visitBBox(@NotNull Expression left, @NotNull Expression right)
      Visits a bbox expression.
      Parameters:
      left - the left expression.
      right - the right expression.
      See Also:
    • visitBBox

      void visitBBox(@NotNull Expression expression)
      Visits a bbox expression.
      Parameters:
      expression - expression that evaluates to a bounding box.
      See Also:
    • visitLike

      void visitLike(@NotNull String propertyPath, @NotNull String pattern, boolean matchCase, char wildCard, char singleChar, char escapeChar)
      Visits a like expression.
      Parameters:
      propertyPath - Path for the property whose value needs to be retrieved.
      pattern - The pattern to match.
      matchCase - Whether to match case sensitive or case insensitive.
      wildCard - The character used as wild card to match zero or more characters.
      singleChar - The character used as single character to match exactly one character.
      escapeChar - The character used to escape the meaning of the wildCard, singleChar and escapeChar itself.
      Since:
      2023.1
      See Also: