public class MigrationPackageImpl extends PsiPackageImpl implements PsiPackage
Iconable.IconFlags, Iconable.LastComputedIcon
Queryable.Contributor, Queryable.PrintInfo, Queryable.Util
FLAGS_LOCKED, ICON_PLACEHOLDER
EMPTY_ARRAY, PACKAGE_INFO_CLASS, PACKAGE_INFO_CLS_FILE, PACKAGE_INFO_FILE
EMPTY_NAVIGATION_ITEM_ARRAY
ARRAY_FACTORY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_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, processDeclarations
add, 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, textToCharArray
acceptChildren, addRange, addRangeAfter, addRangeBefore, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getNavigationElement, getNextSibling, getOriginalElement, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, notNullChild, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
containsClassNamed, findClassByShortName, getAnnotationList, getClasses, getClasses, getFiles, getName, getParentPackage, getQualifiedName, getSubPackages, getSubPackages
checkSetName
getPresentation
canNavigate, canNavigateToSource, navigate
getAnnotation, getAnnotations, getSourceElement, hasAnnotation, hasModifier
getModifierList, hasModifierProperty
accept
getDirectories, getDirectories
setName
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, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
getUserData, putUserData
public MigrationPackageImpl(PsiMigrationImpl migration, java.lang.String qualifiedName)
public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class PsiPackageImpl
public boolean isWritable()
PsiElement
isWritable
in interface PsiElement
isWritable
in class PsiPackageBase
public boolean isValid()
PsiElement
PsiDocumentManager.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 PsiElement
isValid
in class PsiPackageImpl
PsiUtilCore.ensureValid(PsiElement)
public void handleQualifiedNameChange(java.lang.String newQualifiedName)
PsiPackage
handleQualifiedNameChange
in interface PsiPackage
handleQualifiedNameChange
in class PsiPackageImpl
newQualifiedName
- the new qualified name of the package.public VirtualFile [] occursInPackagePrefixes()
PsiPackage
occursInPackagePrefixes
in interface PsiPackage
occursInPackagePrefixes
in class PsiPackageImpl
public boolean mayHaveContentInScope(GlobalSearchScope scope)
mayHaveContentInScope
in class PsiPackageImpl