Class ClassImportRule

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

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

  • Constructor Details

    • ClassImportRule

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