AsmJavaAnalyzerpublic abstract class DJavaAnalyzer
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DJavaAnalyzer.Feature |
| Modifier | Constructor | Description |
|---|---|---|
protected |
DJavaAnalyzer() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
analyzeClassFile(DGroup group,
java.io.InputStream is) |
Analyzes a class file.
|
void |
analyzeClassFile(java.io.File file) |
Analyzes one class file.
|
void |
analyzeClassPath(java.io.File classpath) |
Analyzes all class files contained (directly or not) under a directory.
|
void |
analyzeJarFile(java.io.File jar) |
Analyzes all class files contained in a jar file.
|
DJavaAnalysis |
getAnalysis() |
|
boolean |
isEnabled(DJavaAnalyzer.Feature feature) |
|
protected void |
log(java.lang.String message) |
|
void |
postAnalysis() |
|
void |
setEnabled(DJavaAnalyzer.Feature feature,
boolean enabled) |
protected void log(java.lang.String message)
public final void setEnabled(DJavaAnalyzer.Feature feature, boolean enabled)
public final boolean isEnabled(DJavaAnalyzer.Feature feature)
public final DJavaAnalysis getAnalysis()
public final void analyzeClassFile(java.io.File file)
throws java.lang.Exception
A CLASS_FILE group is associated to analysis result.
file - File to analyze.java.lang.Exception - When any exception occurs.public final void analyzeClassPath(java.io.File classpath)
throws java.lang.Exception
classpath - Name of the directory to analyze.java.lang.Exception - When any exception occurs.public final void analyzeJarFile(java.io.File jar)
throws java.lang.Exception
jar - Jar file.java.lang.Exception - When any exception occurs.public void postAnalysis()
protected abstract void analyzeClassFile(DGroup group, java.io.InputStream is)
group - Group associated to the class file. Its scope should be set to INTERNAL
and its category to CATEGORY_CLASS_FILE.is - InputStream of the class file.Copyright © 2018. All rights reserved.