Class ImportType

java.lang.Object
org.apache.maven.jxr.pacman.BaseType
org.apache.maven.jxr.pacman.ImportType

public class ImportType extends BaseType
Represents an entry in a java "import" statement
  • Field Details

    • isclass

      private boolean isclass
    • ispackage

      private boolean ispackage
    • packagename

      private String packagename
  • Constructor Details

    • ImportType

      public ImportType(String name)
      Create a new ImportType with the specified name.
      Parameters:
      name - name
  • Method Details

    • isClass

      public boolean isClass()
      Determines whether this is a class import. Ex: test.Test
      Returns:
      true if class import, false otherwise
    • isPackage

      public boolean isPackage()
      Determines whether this is a package import. Ex: test.*
      Returns:
      true if package, false otherwise
    • getPackage

      public String getPackage()
      Gets the name of the package that this import is based on: EX: test.* will return "test" EX: test.Test will return "test"
      Returns:
      package