public interface PsiImportStatementBase extends PsiElement
import
or import static
statement.Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
static ArrayFactory<PsiImportStatementBase> |
ARRAY_FACTORY |
static PsiImportStatementBase[] |
EMPTY_ARRAY
The empty array of PSI base import statements which can be reused to avoid unnecessary allocations.
|
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
PsiJavaCodeReferenceElement |
getImportReference()
Returns the reference element which specifies the imported class, package or member.
|
boolean |
isForeignFileImport() |
boolean |
isOnDemand()
Checks if the statement represents a single element or on-demand import.
|
PsiElement |
resolve()
Resolves the reference to the imported class, package or member.
|
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
getUserData, putUserData
static final PsiImportStatementBase[] EMPTY_ARRAY
static final ArrayFactory<PsiImportStatementBase> ARRAY_FACTORY
boolean isOnDemand()
PsiJavaCodeReferenceElement getImportReference()
PsiImportStaticReferenceElement
PsiElement resolve()
boolean isForeignFileImport()