Class Checker

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

public class Checker extends Object
Performs check.
Author:
Kohsuke Kawaguchi
  • 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 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