public class Checker extends Object
| Modifier and Type | Field and Description |
|---|---|
ClassLoader |
dependencies
Where dependencies are loaded.
|
| Constructor and Description |
|---|
Checker(ClassLoader dependencies,
ErrorListener errorListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(File f)
Checks a single class file or a directory full of class files (recursively.)
|
void |
checkClass(File clazz)
Inspects a class for the restriction violations.
|
ErrorListener |
getErrorListener() |
void |
loadRestrictions(InputStream stream,
boolean isInTheInspectedModule)
Loads an additional restriction from the specified "META-INF/annotations/org.kohsuke.accmod.Restricted" file.
|
public final ClassLoader dependencies
public Checker(ClassLoader dependencies, ErrorListener errorListener) throws IOException
IOExceptionpublic ErrorListener getErrorListener()
public void check(File f) throws IOException
IOExceptionpublic void loadRestrictions(InputStream stream, boolean isInTheInspectedModule) throws IOException
isInTheInspectedModule - This value shows up in RestrictedElement.isInTheInspectedModule().stream - IOExceptionpublic void checkClass(File clazz) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.