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 Link icon

    • visitLiteral Link icon

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

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

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

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

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

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

      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: