Package org.kohsuke.accmod.impl
Class Checker
java.lang.Object
org.kohsuke.accmod.impl.Checker
Performs check.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChecker
(ClassLoader dependencies, ErrorListener errorListener, Properties properties, org.apache.maven.plugin.logging.Log log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks a single class file or a directory full of class files (recursively.)void
checkClass
(File clazz) Inspects a class for the restriction violations.void
loadRestrictions
(ClassLoader cl, boolean isInTheInspectedModule) Loads an additional restriction from the specified "META-INF/services/annotations/org.kohsuke.accmod.Restricted" file.
-
Field Details
-
dependencies
Where dependencies are loaded. We don't actually load classes, but this is used to search for class files and indexed restrictions.
-
-
Constructor Details
-
Checker
public Checker(ClassLoader dependencies, ErrorListener errorListener, Properties properties, org.apache.maven.plugin.logging.Log log) throws IOException - Throws:
IOException
-
-
Method Details
-
getErrorListener
-
check
Checks a single class file or a directory full of class files (recursively.)- Throws:
IOException
-
loadRestrictions
Loads an additional restriction from the specified "META-INF/services/annotations/org.kohsuke.accmod.Restricted" file.- Parameters:
isInTheInspectedModule
- This value shows up inRestrictedElement.isInTheInspectedModule()
.- Throws:
IOException
-
checkClass
Inspects a class for the restriction violations.- Throws:
IOException
-