AsmJavaAnalyzerpublic abstract class DJavaAnalyzer extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DJavaAnalyzer.Feature |
| Modifier | Constructor | Description |
|---|---|---|
protected |
DJavaAnalyzer() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
analyzeClassFile(cdc.deps.DGroup group,
InputStream is) |
Analyzes a class file.
|
void |
analyzeClassFile(File file) |
Analyzes one class file.
|
void |
analyzeClassPath(File classpath) |
Analyzes all class files contained (directly or not) under a directory.
|
void |
analyzeJarFile(File jar) |
Analyzes all class files contained in a jar file.
|
DJavaAnalysis |
getAnalysis() |
|
boolean |
isEnabled(DJavaAnalyzer.Feature feature) |
|
protected void |
log(String message) |
|
void |
postAnalysis() |
|
void |
setEnabled(DJavaAnalyzer.Feature feature,
boolean enabled) |
protected void log(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(File file) throws Exception
A CLASS_FILE group is associated to analysis result.
file - File to analyze.Exception - When any exception occurs.public final void analyzeClassPath(File classpath) throws Exception
classpath - Name of the directory to analyze.Exception - When any exception occurs.public final void analyzeJarFile(File jar) throws Exception
jar - Jar file.Exception - When any exception occurs.public void postAnalysis()
protected abstract void analyzeClassFile(cdc.deps.DGroup group,
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 © 2019. All rights reserved.