Package org.apache.maven.jxr.pacman
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 Summary
Fields Modifier and Type Field Description private booleanisclassprivate booleanispackageprivate java.lang.Stringpackagename
-
Constructor Summary
Constructors Constructor Description ImportType(java.lang.String name)Create a newImportTypewith the specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPackage()Gets 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.booleanisPackage()Determines whether this is a package import.
-
-
-
Method Detail
-
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 java.lang.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
-
-