public class PsiImportListImpl extends JavaStubPsiElement<PsiImportListStub> implements PsiImportList
Iconable.IconFlags, Iconable.LastComputedIcon
CREATION_TRACE, ourTraceStubAstBinding
FLAGS_LOCKED, ICON_PLACEHOLDER
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
PsiImportListImpl(ASTNode node) |
PsiImportListImpl(PsiImportListStub stub) |
Modifier and Type | Method and Description |
---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
protected java.lang.Object |
clone() |
PsiImportStatement |
findOnDemandImportStatement(java.lang.String name)
Searches the list for an on-demand import statement importing the specified class.
|
PsiImportStatement |
findSingleClassImportStatement(java.lang.String name)
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.
|
void |
subtreeChanged() |
java.lang.String |
toString()
toString() should never be presented to the user.
|
acceptChildren, add, addAfter, addBefore, calcTreeElement, checkAdd, cloneImpl, delete, deleteChildRange, getChildren, getLanguage, getTextOffset, replace
getContainingFile, getContext, getElementType, getGreenStub, getManager, getNode, getParent, getParentByStub, getParentByTree, getProject, getRequiredStubOrPsiChild, getStub, getStubOrPsiChild, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiParentOfType, isPhysical, isValid, isWritable, setNode, setSubstrateRef
addInternal, addRange, addRangeAfter, addRangeBefore, checkDelete, copy, deleteChildInternal, findChildByFilter, findChildByType, findChildByType, findChildrenByType, findChildrenByType, findChildrenByType, findChildrenByType, findElementAt, findLastChildByType, findNotNullChildByType, findNotNullChildByType, getCopyableUserData, getFirstChild, getLastChild, getNextSibling, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextRange, putCopyableUserData, replaceChildInternal, textContains, textMatches, textToCharArray
canNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getName, getNavigationElement, getOriginalElement, getPresentation, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
getUserData, putUserData
getElementType, getStub
public PsiImportListImpl(PsiImportListStub stub)
public PsiImportListImpl(ASTNode node)
protected java.lang.Object clone()
clone
in class JavaStubPsiElement<PsiImportListStub>
public void subtreeChanged()
subtreeChanged
in class ASTDelegatePsiElement
public PsiImportStatement [] getImportStatements()
PsiImportList
getImportStatements
in interface PsiImportList
public PsiImportStaticStatement [] getImportStaticStatements()
PsiImportList
getImportStaticStatements
in interface PsiImportList
public PsiImportStatementBase [] getAllImportStatements()
PsiImportList
getAllImportStatements
in interface PsiImportList
public PsiImportStatement findSingleClassImportStatement(java.lang.String name)
PsiImportList
findSingleClassImportStatement
in interface PsiImportList
name
- the full-qualified name of the imported class.public PsiImportStatement findOnDemandImportStatement(java.lang.String name)
PsiImportList
findOnDemandImportStatement
in interface PsiImportList
name
- the name of the imported package.public PsiImportStatementBase findSingleImportStatement(java.lang.String name)
PsiImportList
findSingleImportStatement
in interface PsiImportList
name
- the name of the imported class or method.public boolean isReplaceEquivalent(PsiImportList otherList)
PsiImportList
isReplaceEquivalent
in interface PsiImportList
otherList
- the list to check possibility to replace with.public void accept(PsiElementVisitor visitor)
PsiElement
accept
in interface PsiElement
accept
in class PsiElementBase
visitor
- the visitor to pass the element to.public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class java.lang.Object