Package org.codehaus.mojo.animal_sniffer
Class ClassFileVisitor
java.lang.Object
org.codehaus.mojo.animal_sniffer.ClassFileVisitor
- Direct Known Subclasses:
ClassListBuilder
,Main
,SignatureBuilder
,SignatureChecker
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Recursively finds class files and invokesprocess(String, InputStream)
void
Multi-arg version ofprocess(File)
.protected abstract void
process
(String name, InputStream image) protected void
processClassFile
(File file) protected void
processDirectory
(File dir) protected void
processJarFile
(File file) void
setCheckJars
(boolean checkJars)
-
Field Details
-
logger
-
-
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
-
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
-