public class Checker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.ClassLoader |
dependencies
Where dependencies are loaded.
|
| Constructor and Description |
|---|
Checker(java.lang.ClassLoader dependencies,
ErrorListener errorListener) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public final java.lang.ClassLoader dependencies
public Checker(java.lang.ClassLoader dependencies,
ErrorListener errorListener)
throws java.io.IOException
java.io.IOExceptionpublic ErrorListener getErrorListener()
public void check(java.io.File f)
throws java.io.IOException
java.io.IOExceptionpublic void loadRestrictions(java.io.InputStream stream,
boolean isInTheInspectedModule)
throws java.io.IOException
isInTheInspectedModule - This value shows up in RestrictedElement.isInTheInspectedModule().stream - java.io.IOExceptionpublic void checkClass(java.io.File clazz)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013. All Rights Reserved.