org.kohsuke.accmod.impl
Class Checker

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

public class Checker
extends java.lang.Object

Performs check.

Author:
Kohsuke Kawaguchi

Field Summary
 java.lang.ClassLoader dependencies
          Where dependencies are loaded.
 
Constructor Summary
Checker(java.lang.ClassLoader dependencies, ErrorListener errorListener)
           
 
Method Summary
 void check(java.io.File f)
          Checks a single class file or a directory full of class files (recursively.)
 void checkClass(java.io.File clazz)
          Inspects a class for the restriction violations.
 ErrorListener getErrorListener()
           
 void loadRestrictions(java.io.InputStream stream, boolean isInTheInspectedModule)
          Loads an additional restriction from the specified "META-INF/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 Detail

dependencies

public final java.lang.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 Detail

Checker

public Checker(java.lang.ClassLoader dependencies,
               ErrorListener errorListener)
        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getErrorListener

public ErrorListener getErrorListener()

check

public void check(java.io.File f)
           throws java.io.IOException
Checks a single class file or a directory full of class files (recursively.)

Throws:
java.io.IOException

loadRestrictions

public void loadRestrictions(java.io.InputStream stream,
                             boolean isInTheInspectedModule)
                      throws java.io.IOException
Loads an additional restriction from the specified "META-INF/annotations/org.kohsuke.accmod.Restricted" file.

Parameters:
isInTheInspectedModule - This value shows up in RestrictedElement.isInTheInspectedModule().
stream -
Throws:
java.io.IOException

checkClass

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

Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.