Interface OnlyBeAccessedSpecification<CONJUNCTION>


public interface OnlyBeAccessedSpecification<CONJUNCTION>
  • Method Details

    • byAnyPackage

      @PublicAPI(usage=ACCESS) CONJUNCTION byAnyPackage​(java.lang.String... packageIdentifiers)
      Matches classes residing in a package matching any of the supplied package identifiers.
      Parameters:
      packageIdentifiers - Strings identifying packages, for details see PackageMatcher
      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

      @PublicAPI(usage=ACCESS) CONJUNCTION byClassesThat​(DescribedPredicate<? super JavaClass> predicate)
      Parameters:
      predicate - Restricts which classes the access should be from
      Returns:
      A syntax conjunction element, which can be completed to form a full rule