Class ModuleImportRule

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.imports.AbstractImportRule
com.puppycrawl.tools.checkstyle.checks.imports.ModuleImportRule

Represents whether a module is allowed to be imported or not.
  • Field Details

  • Constructor Details

    • ModuleImportRule

      ModuleImportRule(boolean allow, boolean localOnly, String moduleName, boolean regExp)
      Constructs an instance.
      Parameters:
      allow - whether to allow access.
      localOnly - whether the rule is to be applied locally only
      moduleName - the module to apply the rule on.
      regExp - whether the module name is to be interpreted as a regular expression.
  • Method Details