public class Checker extends Object
Modifier and Type | Field | Description |
---|---|---|
ClassLoader |
dependencies |
Where dependencies are loaded.
|
Modifier and Type | Method | 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 ErrorListener getErrorListener()
public void check(File f) throws IOException
IOException
public void loadRestrictions(InputStream stream, boolean isInTheInspectedModule) throws IOException
isInTheInspectedModule
- This value shows up in RestrictedElement.isInTheInspectedModule()
.stream
- IOException
public void checkClass(File clazz) throws IOException
IOException
Copyright © 2018. All rights reserved.