Interface Rules.ForClass

All Known Implementing Classes:
Rule
Enclosing interface:
Rules

public static interface Rules.ForClass
Checks access to constructors or methods, for a specific class.
  • Method Details

    • isAnyDenied

      boolean isAnyDenied()
      Returns true if any operations are denied.
    • isConstructionDenied

      boolean isConstructionDenied()
      Returns true if all constructors are denied.
    • ruleForConstructor

      Rule ruleForConstructor(CharSequence descriptor)
      Returns the rule for a specific constructor, as specified by its descriptor.
      Parameters:
      descriptor - descriptor for the parameters, including parenthesis, but the return type is optional
    • ruleForConstructor

      default Rule ruleForConstructor(Class<?>... paramTypes)
      Returns the rule for a specific constructor, as specified by its parameters.
    • ruleForMethod

      Rule ruleForMethod(CharSequence name, CharSequence descriptor)
      Returns the rule for a specific method, as specified by its name and descriptor.
      Parameters:
      descriptor - descriptor for the parameters, including parenthesis, but the return type is optional
    • ruleForMethod

      default Rule ruleForMethod(CharSequence name, Class<?>... paramTypes)
      Returns the rule for a specific method, as specified by its name and parameters.