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,
Properties properties,
org.apache.maven.plugin.logging.Log log) |
| 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/services/annotations/org.kohsuke.accmod.Restricted" file.
|
public final ClassLoader dependencies
public Checker(ClassLoader dependencies, ErrorListener errorListener, Properties properties, org.apache.maven.plugin.logging.Log log) 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().IOExceptionpublic void checkClass(File clazz) throws IOException
IOExceptionCopyright © 2004–2021. All rights reserved.