- All Known Implementing Classes:
CriteriaFormatter
public interface CriteriaVisitor
Interface for visitor on
CriteriaExpression
. Override individual methods you are interested in. Typically do
something before and/or after delegating to parent method (super.on...(...)
).- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onArg
(io.github.mmm.value.CriteriaObject<?> arg, int i, CriteriaExpression<?> parent) default CriteriaVisitor
onExpression
(CriteriaExpression<?> expression) default CriteriaVisitor
onExpression
(CriteriaExpression<?> expression, CriteriaExpression<?> parent) default void
onLiteral
(Literal<?> literal, int i, CriteriaExpression<?> parent) default void
onOperator
(CriteriaOperator operator) default void
onProjectionProperty
(ProjectionProperty<?> arg, int i, CriteriaExpression<?> parent) default void
onPropertyPath
(io.github.mmm.value.PropertyPath<?> property, int i, CriteriaExpression<?> parent) default void
onUndefinedArg
(io.github.mmm.value.CriteriaObject<?> arg, int i, CriteriaExpression<?> parent)
-
Method Details
-
onExpression
- Parameters:
expression
- theCriteriaExpression
to visit.- Returns:
- this visitor itself for fluent API calls.
-
onExpression
default CriteriaVisitor onExpression(CriteriaExpression<?> expression, CriteriaExpression<?> parent) - Parameters:
expression
- theCriteriaExpression
to visit.parent
- the parentCriteriaExpression
ornull
ifexpression
is the rootCriteriaExpression
.- Returns:
- this visitor itself for fluent API calls.
-
onOperator
- Parameters:
operator
- theCriteriaOperator
to visit.
-
onArg
- Parameters:
arg
- theSupplier
argument
to visit.i
- theindex
ofarg
in thearguments
.parent
- the parentCriteriaExpression
owning the givenarg
.
-
onProjectionProperty
- Parameters:
arg
- theProjectionProperty
.i
- theindex
ofarg
in thearguments
.parent
- the parentCriteriaExpression
owning the givenarg
.
-
onUndefinedArg
default void onUndefinedArg(io.github.mmm.value.CriteriaObject<?> arg, int i, CriteriaExpression<?> parent) - Parameters:
arg
- the undefined arg (if noLiteral
,PropertyPath
orCriteriaExpression
).i
- theindex
ofarg
in thearguments
.parent
- the parentCriteriaExpression
owning the givenarg
.- See Also:
-
onPropertyPath
default void onPropertyPath(io.github.mmm.value.PropertyPath<?> property, int i, CriteriaExpression<?> parent) - Parameters:
property
- thePropertyPath
to visit.i
- theindex
ofarg
in thearguments
.parent
- the parentCriteriaExpression
to owning the givenPropertyPath
.- See Also:
-
onLiteral
- Parameters:
literal
- theLiteral
to visit.i
- theindex
ofarg
in thearguments
.parent
- the parentCriteriaExpression
to owning the givenLiteral
.- See Also:
-