|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.jar.classes.JarClasses
public class JarClasses
Gathered facts about the classes within a JAR file.
JarClassesAnalysis.analyze(org.apache.maven.shared.jar.JarAnalyzer)
Field Summary | |
---|---|
private java.util.List |
classNames
A list of the classes that in the JAR. |
private java.util.List |
imports
The list of imports in the classes in the JAR. |
private boolean |
isDebugPresent
Whether the JAR contains any code with debug information. |
private java.lang.String |
jdkRevision
The highest JVM revision available in any class files. |
private java.util.List |
methods
A list of methods within the classes in the JAR. |
private java.util.List |
packages
A list of packages represented by classes in the JAR. |
Constructor Summary | |
---|---|
JarClasses()
Constructor to create an empty instance. |
Method Summary | |
---|---|
void |
addClassName(java.lang.String name)
Add a discovered class to the record. |
void |
addImports(java.util.List imports)
Add a list of discovered imports to the record. |
void |
addMethod(java.lang.String name)
Add a discovered method to the record. |
void |
addPackage(java.lang.String name)
Add a discovered package to the record. |
java.util.List |
getClassNames()
|
java.util.List |
getImports()
|
java.lang.String |
getJdkRevision()
|
java.util.List |
getMethods()
|
java.util.List |
getPackages()
|
boolean |
isDebugPresent()
|
void |
setDebugPresent(boolean hasDebugSymbols)
|
void |
setJdkRevision(java.lang.String jdkRevision)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List imports
private java.util.List packages
private java.util.List classNames
private java.util.List methods
private boolean isDebugPresent
private java.lang.String jdkRevision
Constructor Detail |
---|
public JarClasses()
Method Detail |
---|
public void addClassName(java.lang.String name)
name
- the name of the classpublic void addPackage(java.lang.String name)
name
- the name of the packagepublic void addMethod(java.lang.String name)
name
- the name of the methodpublic void addImports(java.util.List imports)
imports
- the imports to add. Each item should be a String to avoid down the line ClassCastExceptions.public java.util.List getImports()
public java.util.List getClassNames()
public java.util.List getPackages()
public boolean isDebugPresent()
public void setDebugPresent(boolean hasDebugSymbols)
public java.lang.String getJdkRevision()
public void setJdkRevision(java.lang.String jdkRevision)
public java.util.List getMethods()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |