public class PsiImportListImpl extends JavaStubPsiElement<PsiImportListStub> implements PsiImportList
Iconable.IconFlags, Iconable.LastComputedIconCREATION_TRACE, ourTraceStubAstBindingFLAGS_LOCKED, ICON_PLACEHOLDERICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_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, replacegetContainingFile, getContext, getElementType, getGreenStub, getManager, getNode, getParent, getParentByStub, getParentByTree, getProject, getRequiredStubOrPsiChild, getStub, getStubOrPsiChild, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiParentOfType, isPhysical, isValid, isWritable, setNode, setSubstrateRefaddInternal, 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, textToCharArraycanNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getName, getNavigationElement, getOriginalElement, getPresentation, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textMatchesbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptChildren, 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, textToCharArraygetUserData, putUserDatagetElementType, getStubpublic PsiImportListImpl(PsiImportListStub stub)
public PsiImportListImpl(ASTNode node)
protected java.lang.Object clone()
clone in class JavaStubPsiElement<PsiImportListStub>public void subtreeChanged()
subtreeChanged in class ASTDelegatePsiElementpublic PsiImportStatement [] getImportStatements()
PsiImportListgetImportStatements in interface PsiImportListpublic PsiImportStaticStatement [] getImportStaticStatements()
PsiImportListgetImportStaticStatements in interface PsiImportListpublic PsiImportStatementBase [] getAllImportStatements()
PsiImportListgetAllImportStatements in interface PsiImportListpublic PsiImportStatement findSingleClassImportStatement(java.lang.String name)
PsiImportListfindSingleClassImportStatement in interface PsiImportListname - the full-qualified name of the imported class.public PsiImportStatement findOnDemandImportStatement(java.lang.String name)
PsiImportListfindOnDemandImportStatement in interface PsiImportListname - the name of the imported package.public PsiImportStatementBase findSingleImportStatement(java.lang.String name)
PsiImportListfindSingleImportStatement in interface PsiImportListname - the name of the imported class or method.public boolean isReplaceEquivalent(PsiImportList otherList)
PsiImportListisReplaceEquivalent in interface PsiImportListotherList - the list to check possibility to replace with.public void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class PsiElementBasevisitor - the visitor to pass the element to.public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class java.lang.Object