Annotation Interface MethodPredicate


@Target(METHOD) @Retention(RUNTIME) public @interface MethodPredicate
The MethodPredicate annotation is used to define a predicate method that represents a condition for a rule.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies which fact fields are to be passed to the method as its arguments.
    Name of the method that will represent an LHS condition.
  • Element Details

    • method

      String method
      Name of the method that will represent an LHS condition.
      Returns:
      name of the method
    • args

      String[] args
      Specifies which fact fields are to be passed to the method as its arguments. The corresponding field types must match the method's signature.
      Returns:
      non-empty array of field references which will be method arguments.