Class PackagesRule


  • public final class PackagesRule
    extends ResultUseRule.SymbolRule<VisitorState,​com.sun.tools.javac.code.Symbol>
    A rule that enables checking for methods belonging to a set of packages or any of their subpackages.
    • Method Detail

      • fromPatterns

        public static PackagesRule fromPatterns​(Iterable<String> patterns)
        Returns a new rule using the given package patterns. Each pattern string must either be the fully qualified name of a package (to enable checking for methods in that package and its subpackages) or a - character followed by the fully qualified name of a package (to disable checking for methods in that package and its subpackages).