Package org.apache.maven.jxr.pacman
Class ImportType
java.lang.Object
org.apache.maven.jxr.pacman.BaseType
org.apache.maven.jxr.pacman.ImportType
Represents an entry in a java "import" statement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the package that this import is based on: EX: test.* will return "test" EX: test.Test will return "test"booleanisClass()Determines whether this is a class import.booleanDetermines whether this is a package import.
-
Field Details
-
isclass
private boolean isclass -
ispackage
private boolean ispackage -
packagename
-
-
Constructor Details
-
ImportType
Create a newImportTypewith 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
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
-