Class Checker

java.lang.Object
org.kohsuke.accmod.impl.Checker

public class Checker extends Object
Performs check.
Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Where dependencies are loaded.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Checker(ClassLoader dependencies, org.kohsuke.accmod.impl.ErrorListener errorListener, Properties properties, org.apache.maven.plugin.logging.Log log)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Checks a single class file or a directory full of class files (recursively.)
    void
    Inspects a class for the restriction violations.
    org.kohsuke.accmod.impl.ErrorListener
     
    void
    loadRestrictions(ClassLoader cl, boolean isInTheInspectedModule)
    Loads an additional restriction from the specified "META-INF/services/annotations/org.kohsuke.accmod.Restricted" file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dependencies

      public final ClassLoader dependencies
      Where dependencies are loaded. We don't actually load classes, but this is used to search for class files and indexed restrictions.
  • Constructor Details

  • Method Details

    • getErrorListener

      public org.kohsuke.accmod.impl.ErrorListener getErrorListener()
    • check

      public void check(File f) throws IOException
      Checks a single class file or a directory full of class files (recursively.)
      Throws:
      IOException
    • loadRestrictions

      public void loadRestrictions(ClassLoader cl, boolean isInTheInspectedModule) throws IOException
      Loads an additional restriction from the specified "META-INF/services/annotations/org.kohsuke.accmod.Restricted" file.
      Parameters:
      isInTheInspectedModule - This value shows up in RestrictedElement.isInTheInspectedModule().
      Throws:
      IOException
    • checkClass

      public void checkClass(File clazz) throws IOException
      Inspects a class for the restriction violations.
      Throws:
      IOException