|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.instr.Analyzer
public class Analyzer
Several APIs to analyze class structures.
Constructor Summary | |
---|---|
Analyzer(IStructureVisitor structureVisitor)
Creates a new analyzer reporting to the given output. |
Method Summary | |
---|---|
void |
analyze(byte[] buffer)
Analyzes the class definition from a given in-memory buffer. |
void |
analyze(ClassReader reader)
Analyzes the class given as a ASM reader. |
void |
analyze(File file)
Analyzes the class definition contained in a given file. |
void |
analyze(InputStream input)
Analyzes the class definition from a given input stream. |
void |
analyzeAll(File directory)
Analyzes all class files contained in the given directory and its children. |
void |
analyzeJAR(File jarfile)
Analyzes all class files contained in a JAR file. |
void |
analyzeJAR(InputStream input)
Analyzes all class files contained in a JAR file. |
void |
analyzePath(String path,
File basedir)
Analyzes all class from the given class path. |
ClassVisitor |
createAnalyzingVisitor(long classid)
Creates an ASM class visitor for analysis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Analyzer(IStructureVisitor structureVisitor)
structureVisitor
- the output instance that will receive all structure dataMethod Detail |
---|
public ClassVisitor createAnalyzingVisitor(long classid)
classid
- id of the class calculated with CRC64
public void analyze(ClassReader reader)
reader
- reader with class definitionspublic void analyze(byte[] buffer)
buffer
- class definitionspublic void analyze(InputStream input) throws IOException
input
- stream to read class definition from
IOException
public void analyze(File file) throws IOException
file
- class file
IOException
public void analyzeAll(File directory) throws IOException
directory
- folder to look for class files
IOException
- thrown if the given file object does not represent a readable
directorypublic void analyzeJAR(InputStream input) throws IOException
input
- stream to read the JAR file from
IOException
public void analyzeJAR(File jarfile) throws IOException
jarfile
- JAR file
IOException
public void analyzePath(String path, File basedir) throws IOException
path
- path definitionbasedir
- optional base directory, if null
the current
working directory is used as the base for relative path
entries
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |