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 TypeMethodDescriptionvoidvisitAnd(List<@NotNull Expression> conditions) Visits a logicalandoperation.voidvisitBBox(Expression expression) Visits a bbox expression.voidvisitBBox(Expression left, Expression right) Visits a bbox expression.voidvisitEqual(Expression left, Expression right) Visits an 'equal' condition.voidvisitGt(Expression left, Expression right) Visits a 'greater than' condition.voidvisitGte(Expression left, Expression right) Visits a 'greater than or equal' condition.voidvisitLike(String propertyPath, String pattern, boolean matchCase, char wildCard, char singleChar, char escapeChar) Visits a like expression.voidvisitLiteral(ExpressionValue value) Visits a 'literal' value.voidvisitLt(Expression left, Expression right) Visits a 'less than' condition.voidvisitLte(Expression left, Expression right) Visits a 'less than or equal' condition.voidvisitNot(Expression condition) Visits a logical 'not' operation.voidvisitNotEqual(Expression left, Expression right) Visits a 'not equal' condition.voidvisitOr(List<@NotNull Expression> conditions) Visits a logicaloroperation.voidvisitValueReference(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 logicalandoperation.- Parameters:
conditions- the list of conditions.- See Also:
-
visitOr
Visits a logicaloroperation.- 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- theleftexpression.right- therightexpression.- See Also:
-
visitNotEqual
Visits a 'not equal' condition.- Parameters:
left- theleftexpression.right- therightexpression.- See Also:
-
visitGt
Visits a 'greater than' condition.- Parameters:
left- theleftexpression.right- therightexpression.- See Also:
-
visitGte
Visits a 'greater than or equal' condition.- Parameters:
left- theleftexpression.right- therightexpression.- See Also:
-
visitLt
Visits a 'less than' condition.- Parameters:
left- theleftexpression.right- therightexpression.- See Also:
-
visitLte
Visits a 'less than or equal' condition.- Parameters:
left- theleftexpression.right- therightexpression.- See Also:
-
visitBBox
Visits a bbox expression.- Parameters:
left- theleftexpression.right- therightexpression.- 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,singleCharandescapeCharitself.- Since:
- 2023.1
- See Also:
-