|
|||||||||
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 | |
---|---|
int |
analyzeAll(File file)
Analyzes all class files contained in the given file or folder. |
int |
analyzeAll(InputStream input)
Analyzes all classes found in the given input stream. |
int |
analyzeAll(String path,
File basedir)
Analyzes all classes from the given class path. |
int |
analyzeArchive(InputStream input)
Analyzes all classes contained in the ZIP archive (jar, war, ear, etc.) |
void |
analyzeClass(byte[] buffer)
Analyzes the class definition from a given in-memory buffer. |
void |
analyzeClass(ClassReader reader)
Analyzes the class given as a ASM reader. |
void |
analyzeClass(InputStream input)
Analyzes the class definition from a given input stream. |
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 analyzeClass(ClassReader reader)
reader
- reader with class definitionspublic void analyzeClass(byte[] buffer)
buffer
- class definitionspublic void analyzeClass(InputStream input) throws IOException
input
- stream to read class definition from
IOException
public int analyzeArchive(InputStream input) throws IOException
input
- ZIP archive data
IOException
public int analyzeAll(InputStream input) throws IOException
input
- input data
IOException
public int analyzeAll(File file) throws IOException
file
- file or folder to look for class files
IOException
public int analyzeAll(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 |