Package org.codehaus.mojo.animal_sniffer
Class ClassFileVisitor
java.lang.Object
org.codehaus.mojo.animal_sniffer.ClassFileVisitor
- Direct Known Subclasses:
ClassListBuilder,Main,SignatureBuilder,SignatureChecker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidRecursively finds class files and invokesprocess(String, InputStream)voidMulti-arg version ofprocess(File).protected abstract voidprocess(String name, InputStream image) voidRecursively finds class files and invokesprocess(String, InputStream)protected voidprocessClassFile(File file) protected voidprocessDirectory(File dir) protected voidprocessJarFile(File file) voidsetCheckJars(boolean checkJars)
-
Field Details
-
logger
-
checkJars
private boolean checkJarsWhether to check inside.jarfiles
-
-
Constructor Details
-
ClassFileVisitor
protected ClassFileVisitor() -
ClassFileVisitor
-
-
Method Details
-
isCheckJars
public boolean isCheckJars() -
setCheckJars
public void setCheckJars(boolean checkJars) -
process
Multi-arg version ofprocess(File).- Throws:
IOException
-
process
Recursively finds class files and invokesprocess(String, InputStream)- Parameters:
file- Directory full of class files or jar files (in which case all of them are processed recursively), or a class file (in which case that single class is processed), or a jar file (in which case all the classes in this jar file are processed.)- Throws:
IOException
-
process
Recursively finds class files and invokesprocess(String, InputStream)- Parameters:
path- Directory (or other Path likePaths.get(URI.create("jrt:/modules"))) full of class files, or a class file (in which case that single class is processed).- Throws:
IOException
-
processDirectory
- Throws:
IOException
-
processJarFile
- Throws:
IOException
-
processClassFile
- Throws:
IOException
-
process
- Parameters:
name- Displayable name to identify what class file we are processingimage- Class file image.- Throws:
IOException
-