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
    Name of the method that will represent an LHS condition.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies which fact fields are to be passed to the method as its arguments.
  • 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:
      array of field references which will be method arguments.
      Default:
      {}