public class ImportType extends BaseType
Constructor and Description |
---|
ImportType(String name)
Create a new
ImportType with the specified name. |
Modifier and Type | Method and Description |
---|---|
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"
|
boolean |
isClass()
Determines whether this is a class import.
|
boolean |
isPackage()
Determines whether this is a package import.
|
public ImportType(String name)
ImportType
with the specified name.name
- namepublic boolean isClass()
public boolean isPackage()
public String getPackage()
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.