Package com.luciad.expressions
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 Summary
Modifier and TypeMethodDescriptionvoid
visitAnd
(List<@NotNull Expression> conditions) Visits a logicaland
operation.void
visitBBox
(Expression expression) Visits a bbox expression.void
visitBBox
(Expression left, Expression right) Visits a bbox expression.void
visitEqual
(Expression left, Expression right) Visits an 'equal' condition.void
visitGt
(Expression left, Expression right) Visits a 'greater than' condition.void
visitGte
(Expression left, Expression right) Visits a 'greater than or equal' condition.void
visitLike
(String propertyPath, String pattern, boolean matchCase, char wildCard, char singleChar, char escapeChar) Visits a like expression.void
visitLiteral
(ExpressionValue value) Visits a 'literal' value.void
visitLt
(Expression left, Expression right) Visits a 'less than' condition.void
visitLte
(Expression left, Expression right) Visits a 'less than or equal' condition.void
visitNot
(Expression condition) Visits a logical 'not' operation.void
visitNotEqual
(Expression left, Expression right) Visits a 'not equal' condition.void
visitOr
(List<@NotNull Expression> conditions) Visits a logicalor
operation.void
visitValueReference
(String propertyPath) Visits a reference to a property.
-
Method Details
-
visitLiteral
Visits a 'literal' value.- Parameters:
value
- the literal value.- See Also:
-
visitValueReference
Visits a reference to a property.- Parameters:
propertyPath
- the path to the property.- See Also:
-
visitAnd
Visits a logicaland
operation.- Parameters:
conditions
- the list of conditions.- See Also:
-
visitOr
Visits a logicalor
operation.- Parameters:
conditions
- the list of conditions.- See Also:
-
visitNot
Visits a logical 'not' operation.- Parameters:
condition
- the condition that is inverted.- See Also:
-
visitEqual
Visits an 'equal' condition.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitNotEqual
Visits a 'not equal' condition.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitGt
Visits a 'greater than' condition.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitGte
Visits a 'greater than or equal' condition.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitLt
Visits a 'less than' condition.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitLte
Visits a 'less than or equal' condition.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitBBox
Visits a bbox expression.- Parameters:
left
- theleft
expression.right
- theright
expression.- See Also:
-
visitBBox
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 thewildCard
,singleChar
andescapeChar
itself.- Since:
- 2023.1
- See Also:
-