public interface PsiImportList extends PsiElement
PsiJavaFile.getImportList()
Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
static ArrayFactory<PsiImportList> |
ARRAY_FACTORY |
static PsiImportList[] |
EMPTY_ARRAY |
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
PsiImportStatement |
findOnDemandImportStatement(java.lang.String packageName)
Searches the list for an on-demand import statement importing the specified class.
|
PsiImportStatement |
findSingleClassImportStatement(java.lang.String qName)
Searches the list for a single-class import statement importing the specified class.
|
PsiImportStatementBase |
findSingleImportStatement(java.lang.String name)
Searches the list for a single import or import static statement importing the specified
identifier.
|
PsiImportStatementBase [] |
getAllImportStatements()
Returns all import statements contained in the list.
|
PsiImportStatement [] |
getImportStatements()
Returns the non-static import statements contained in the list.
|
PsiImportStaticStatement [] |
getImportStaticStatements()
Returns the static import statements contained in the list.
|
boolean |
isReplaceEquivalent(PsiImportList otherList)
Checks if replacing this import list with the specified import list will cause no
modifications to the file.
|
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 PsiImportList[] EMPTY_ARRAY
static final ArrayFactory<PsiImportList> ARRAY_FACTORY
PsiImportStatement [] getImportStatements()
PsiImportStaticStatement [] getImportStaticStatements()
PsiImportStatementBase [] getAllImportStatements()
PsiImportStatement findSingleClassImportStatement(java.lang.String qName)
qName
- the full-qualified name of the imported class.PsiImportStatement findOnDemandImportStatement(java.lang.String packageName)
packageName
- the name of the imported package.PsiImportStatementBase findSingleImportStatement(java.lang.String name)
name
- the name of the imported class or method.boolean isReplaceEquivalent(PsiImportList otherList)
otherList
- the list to check possibility to replace with.