public abstract class ClassFileVisitor extends Object
| Constructor and Description |
|---|
ClassFileVisitor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCheckJars() |
void |
process(File file)
Recursively finds class files and invokes
process(String, InputStream) |
void |
process(File[] files)
Multi-arg version of
process(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) |
public boolean isCheckJars()
public void setCheckJars(boolean checkJars)
public void process(File[] files) throws IOException
process(File).IOExceptionpublic void process(File file) throws IOException
process(String, InputStream)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.)IOExceptionprotected void processDirectory(File dir) throws IOException
IOExceptionprotected void processJarFile(File file) throws IOException
IOExceptionprotected void processClassFile(File file) throws IOException
IOExceptionprotected abstract void process(String name, InputStream image) throws IOException
name - Displayable name to identify what class file we are processingimage - Class file image.IOExceptionCopyright © 2008–2014. All rights reserved.