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 Summary
Modifier and TypeMethodDescriptionboolean
Returns true if any operations are denied.boolean
Returns true if all constructors are denied.ruleForConstructor
(CharSequence descriptor) Returns the rule for a specific constructor, as specified by its descriptor.default Rule
ruleForConstructor
(Class<?>... paramTypes) Returns the rule for a specific constructor, as specified by its parameters.ruleForMethod
(CharSequence name, CharSequence descriptor) Returns the rule for a specific method, as specified by its name and descriptor.default Rule
ruleForMethod
(CharSequence name, Class<?>... paramTypes) Returns the rule for a specific method, as specified by its name and parameters.
-
Method Details
-
isAnyDenied
boolean isAnyDenied()Returns true if any operations are denied. -
isConstructionDenied
boolean isConstructionDenied()Returns true if all constructors are denied. -
ruleForConstructor
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
-
ruleForMethod
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
Returns the rule for a specific method, as specified by its name and parameters.
-