Interface OnlyBeAccessedSpecification<CONJUNCTION>
public interface OnlyBeAccessedSpecification<CONJUNCTION>
-
Method Summary
Modifier and TypeMethodDescriptionbyAnyPackage
(String... packageIdentifiers) Matches classes residing in a package matching any of the supplied package identifiers.byClassesThat
(DescribedPredicate<? super JavaClass> predicate)
-
Method Details
-
byAnyPackage
Matches classes residing in a package matching any of the supplied package identifiers.- Parameters:
packageIdentifiers
- Strings identifying packages, for details seePackageMatcher
- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
byClassesThat
- Returns:
- A syntax element that allows restricting which classes the access should be from
-
byClassesThat
- Parameters:
predicate
- Restricts which classes the access should be from- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-