public interface Import extends Internal, StaticCapableSource<Import>
JavaSource.| Modifier and Type | Method and Description |
|---|---|
String |
getPackage()
Returns the package part of a import.
|
String |
getQualifiedName()
Returns the qualified name, so it's the same as '
getPackage() + "." + getSimpleName()'. |
String |
getSimpleName()
Returns the simple name of a import.
|
boolean |
isWildcard()
Checks if this import is a wildcard (
*) import. |
Import |
setName(String name)
Sets the data of this import object.
|
getInternalsetStaticisStaticstatic final String WILDCARD
String getPackage()
String getSimpleName()
WILDCARD, if this is a wildcard import.Class.getSimpleName()String getQualifiedName()
getPackage() + "." + getSimpleName()'. In the case this
is a wildcard import, the whole import including a '*' at the end is returned.boolean isWildcard()
*) import.Copyright © 2019 JBoss by Red Hat. All rights reserved.