org.apache.maven.shared.jar.classes
Class JarClassesAnalysis

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.jar.classes.JarClassesAnalysis
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled

public class JarClassesAnalysis
extends org.codehaus.plexus.logging.AbstractLogEnabled

Analyze the classes in a JAR file. This class is thread safe and immutable as it retains no state.

Note that you must first create an instance of JarAnalyzer - see its Javadoc for a typical use.

See Also:
analyze(org.apache.maven.shared.jar.JarAnalyzer)

Field Summary
private static double JAVA_1_1_CLASS_VERSION
           
private static double JAVA_1_2_CLASS_VERSION
           
private static double JAVA_1_3_CLASS_VERSION
           
private static double JAVA_1_4_CLASS_VERSION
           
private static double JAVA_1_5_CLASS_VERSION
           
private static double JAVA_1_6_CLASS_VERSION
           
 
Constructor Summary
JarClassesAnalysis()
           
 
Method Summary
 JarClasses analyze(JarAnalyzer jarAnalyzer)
          Analyze a JAR and find any classes and their details.
private  boolean hasDebugSymbols(org.apache.bcel.classfile.JavaClass javaClass)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_1_6_CLASS_VERSION

private static final double JAVA_1_6_CLASS_VERSION
See Also:
Constant Field Values

JAVA_1_5_CLASS_VERSION

private static final double JAVA_1_5_CLASS_VERSION
See Also:
Constant Field Values

JAVA_1_4_CLASS_VERSION

private static final double JAVA_1_4_CLASS_VERSION
See Also:
Constant Field Values

JAVA_1_3_CLASS_VERSION

private static final double JAVA_1_3_CLASS_VERSION
See Also:
Constant Field Values

JAVA_1_2_CLASS_VERSION

private static final double JAVA_1_2_CLASS_VERSION
See Also:
Constant Field Values

JAVA_1_1_CLASS_VERSION

private static final double JAVA_1_1_CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

JarClassesAnalysis

public JarClassesAnalysis()
Method Detail

analyze

public JarClasses analyze(JarAnalyzer jarAnalyzer)
Analyze a JAR and find any classes and their details. Note that if the provided JAR analyzer has previously analyzed the JAR, the cached results will be returned. You must obtain a new JAR analyzer to the re-read the contents of the file.

Parameters:
jarAnalyzer - the JAR to analyze. This must not yet have been closed.
Returns:
the details of the classes found

hasDebugSymbols

private boolean hasDebugSymbols(org.apache.bcel.classfile.JavaClass javaClass)