public class MigrationPackageImpl extends PsiPackageImpl implements PsiPackage
Iconable.IconFlags, Iconable.LastComputedIconQueryable.Contributor, Queryable.PrintInfo, Queryable.UtilFLAGS_LOCKED, ICON_PLACEHOLDEREMPTY_ARRAY, PACKAGE_INFO_CLASS, PACKAGE_INFO_CLS_FILE, PACKAGE_INFO_FILEEMPTY_NAVIGATION_ITEM_ARRAYARRAY_FACTORYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAY| Constructor and Description |
|---|
MigrationPackageImpl(PsiMigrationImpl migration,
java.lang.String qualifiedName) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleQualifiedNameChange(java.lang.String newQualifiedName)
This method must be invoked on the package after all directories corresponding
to it have been renamed/moved accordingly to qualified name change.
|
boolean |
isValid()
Checks if this PSI element is valid.
|
boolean |
isWritable()
Checks if the contents of the element can be modified (if it belongs to a
non-read-only source file.)
|
boolean |
mayHaveContentInScope(GlobalSearchScope scope) |
VirtualFile [] |
occursInPackagePrefixes()
Returns source roots that this package occurs in package prefixes of.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
accept, allScope, canNavigate, containsClassNamed, findClassByShortName, findPackage, getAllDirectories, getAnnotationList, getClasses, getClasses, getFiles, getLanguage, getModifierList, getParentPackage, getPresentation, getSubPackages, getSubPackages, hasModifierProperty, navigate, processDeclarationsadd, addAfter, addBefore, canNavigateToSource, checkAdd, checkDelete, checkSetName, copy, delete, equals, findElementAt, getAllDirectories, getChildren, getContainingFile, getDirectories, getDirectories, getElementIcon, getManager, getName, getNode, getParent, getQualifiedName, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, hashCode, isPhysical, putInfo, replace, setName, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getNavigationElement, getNextSibling, getOriginalElement, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, notNullChild, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsClassNamed, findClassByShortName, getAnnotationList, getClasses, getClasses, getFiles, getName, getParentPackage, getQualifiedName, getSubPackages, getSubPackagescheckSetNamegetPresentationcanNavigate, canNavigateToSource, navigategetAnnotation, getAnnotations, getSourceElement, hasAnnotation, hasModifiergetModifierList, hasModifierPropertyacceptgetDirectories, getDirectoriessetNameaccept, 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, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArraygetUserData, putUserDatapublic MigrationPackageImpl(PsiMigrationImpl migration, java.lang.String qualifiedName)
public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class PsiPackageImplpublic boolean isWritable()
PsiElementisWritable in interface PsiElementisWritable in class PsiPackageBasepublic boolean isValid()
PsiElementPsiDocumentManager.commitDocument(com.intellij.openapi.editor.Document)).
(In this case an attempt to change PSI will result in an exception).
Any access to invalid elements results in PsiInvalidElementAccessException.
Once invalid, elements can't become valid again.
Elements become invalid in following cases:
PsiElement.delete())isValid in interface PsiElementisValid in class PsiPackageImplPsiUtilCore.ensureValid(PsiElement)public void handleQualifiedNameChange(java.lang.String newQualifiedName)
PsiPackagehandleQualifiedNameChange in interface PsiPackagehandleQualifiedNameChange in class PsiPackageImplnewQualifiedName - the new qualified name of the package.public VirtualFile [] occursInPackagePrefixes()
PsiPackageoccursInPackagePrefixes in interface PsiPackageoccursInPackagePrefixes in class PsiPackageImplpublic boolean mayHaveContentInScope(GlobalSearchScope scope)
mayHaveContentInScope in class PsiPackageImpl