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 TypeMethodDescriptionbooleanReturns true if any operations are denied.booleanReturns true if all constructors are denied.ruleForConstructor(CharSequence descriptor) Returns the rule for a specific constructor, as specified by its descriptor.default RuleruleForConstructor(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 RuleruleForMethod(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.
-