Class JarClasses

java.lang.Object
org.apache.maven.shared.jar.classes.JarClasses

public class JarClasses extends Object
Gathered facts about the classes within a JAR file.
See Also:
  • Constructor Details

    • JarClasses

      public JarClasses()
      Constructor to create an empty instance.
  • Method Details

    • addClassName

      public void addClassName(String name)
      Add a discovered class to the record.
      Parameters:
      name - the name of the class
    • addPackage

      public void addPackage(String name)
      Add a discovered package to the record.
      Parameters:
      name - the name of the package
    • addMethod

      public void addMethod(String name)
      Add a discovered method to the record.
      Parameters:
      name - the name of the method
    • addImports

      public void addImports(List<String> imports)
      Add a list of discovered imports to the record.
      Parameters:
      imports - the imports to add. Each item should be a String to avoid down the line ClassCastExceptions.
    • getImports

      public List<String> getImports()
    • getClassNames

      public List<String> getClassNames()
    • getPackages

      public List<String> getPackages()
    • isDebugPresent

      public boolean isDebugPresent()
    • setDebugPresent

      public void setDebugPresent(boolean hasDebugSymbols)
    • getJdkRevision

      public String getJdkRevision()
    • setJdkRevision

      public void setJdkRevision(String jdkRevision)
    • getMethods

      public List<String> getMethods()