Package org.evrete.dsl.annotation
Annotation Type Where
-
@Target(METHOD) @Retention(RUNTIME) public @interface Where
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description MethodPredicate[]methodsString[]valueThis annotation value defines an array of literal conditions like "[$c.type == $cat.id, $c.rating > 30.0]".
-
-
-
Element Detail
-
value
String[] value
This annotation value defines an array of literal conditions like "[$c.type == $cat.id, $c.rating > 30.0]". The implementation must parse and match every condition with the method signature. So in the example above the annotated method might look like
void doSomething(Customer $a, Category $cat)- Returns:
- array of literal conditions
- Default:
- {}
-
-
-
methods
MethodPredicate[] methods
- Returns:
- array of MethodPredicate conditions
- See Also:
MethodPredicate
- Default:
- {}
-
-