public class ClsJavaModuleImpl extends ClsRepositoryPsiElement<PsiJavaModuleStub> implements PsiJavaModule
ClsElementImpl.InvalidMirrorExceptionIconable.IconFlags, Iconable.LastComputedIconCOMPILED_ELEMENT, NEXT_LINEFLAGS_LOCKED, ICON_PLACEHOLDERAUTO_MODULE_NAME, JAVA_BASE, MODULE_INFO_CLASS, MODULE_INFO_CLS_FILE, MODULE_INFO_FILE, UPGRADEABLEEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAYEMPTY_ARRAYARRAY_FACTORYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Constructor and Description |
|---|
ClsJavaModuleImpl(PsiJavaModuleStub stub) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
void |
appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer) |
PsiDocComment |
getDocComment()
Returns the JavaDoc comment for the element, or
null when the element has no JavaDoc comment. |
java.lang.Iterable<PsiPackageAccessibilityStatement> |
getExports() |
PsiModifierList |
getModifierList()
Returns the list of modifiers for the element.
|
java.lang.String |
getName()
Returns the name of the element.
|
PsiJavaModuleReferenceElement |
getNameIdentifier() |
PsiElement |
getNavigationElement()
Returns the PSI element which should be used as a navigation target
when navigation to this PSI element is requested.
|
java.lang.Iterable<PsiPackageAccessibilityStatement> |
getOpens() |
ItemPresentation |
getPresentation() |
java.lang.Iterable<PsiProvidesStatement> |
getProvides() |
java.lang.Iterable<PsiRequiresStatement> |
getRequires() |
java.lang.Iterable<PsiUsesStatement> |
getUses() |
boolean |
hasModifierProperty(java.lang.String name)
Checks if the element has the specified modifier.
|
void |
setMirror(TreeElement element) |
PsiElement |
setName(java.lang.String name)
Renames the element.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
getChildren, getContainingFile, getElementType, getFirstChild, getLastChild, getManager, getNextSibling, getParent, getPrevSibling, getStub, isPhysicaladd, addAfter, addBefore, appendText, appendText, checkAdd, checkDelete, copy, delete, findElementAt, findReferenceAt, getChildren, getIndentSize, getLanguage, getMirror, getNode, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isValid, isWritable, replace, setMirror, setMirrorCheckingType, setMirrorIfPresent, setMirrors, setMirrors, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, getContext, getOriginalElement, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanNavigate, canNavigateToSource, navigategetIdentifyingElementacceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, 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, putUserDatagetAnnotation, getAnnotations, hasAnnotation, hasModifierpublic ClsJavaModuleImpl(PsiJavaModuleStub stub)
public java.lang.Iterable<PsiRequiresStatement> getRequires()
getRequires in interface PsiJavaModulepublic java.lang.Iterable<PsiPackageAccessibilityStatement> getExports()
getExports in interface PsiJavaModulepublic java.lang.Iterable<PsiPackageAccessibilityStatement> getOpens()
getOpens in interface PsiJavaModulepublic java.lang.Iterable<PsiUsesStatement> getUses()
getUses in interface PsiJavaModulepublic java.lang.Iterable<PsiProvidesStatement> getProvides()
getProvides in interface PsiJavaModulepublic void appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer)
appendMirrorText in class ClsElementImplpublic void setMirror(TreeElement element) throws ClsElementImpl.InvalidMirrorException
setMirror in class ClsElementImplClsElementImpl.InvalidMirrorExceptionpublic PsiJavaModuleReferenceElement getNameIdentifier()
getNameIdentifier in interface PsiJavaModulegetNameIdentifier in interface PsiNameIdentifierOwnerpublic java.lang.String getName()
PsiNamedElementgetName in interface NavigationItemgetName in interface PsiJavaModulegetName in interface PsiNamedElementgetName in class PsiElementBasepublic PsiElement setName(java.lang.String name) throws IncorrectOperationException
PsiNamedElementsetName in interface PsiNamedElementname - the new element name.this
or a different element if the rename caused the element to be replaced).IncorrectOperationException - if the modification is not supported or not possible for some reason.public PsiModifierList getModifierList()
PsiModifierListOwnergetModifierList in interface PsiModifierListOwnerpublic boolean hasModifierProperty(java.lang.String name)
PsiModifierListOwnerPsiModifier class.hasModifierProperty in interface PsiModifierListOwnername - the name of the modifier to check.public PsiDocComment getDocComment()
PsiJavaDocumentedElementnull when the element has no JavaDoc comment.getDocComment in interface PsiJavaDocumentedElementpublic ItemPresentation getPresentation()
getPresentation in interface NavigationItemgetPresentation in class PsiElementBasepublic PsiElement getNavigationElement()
PsiElementthis or substitute a different element if this element
does not have an associated file and offset. (For example, if the source code
of a library is attached to a project, the navigation element for a compiled
library class is its source class.)getNavigationElement in interface PsiElementgetNavigationElement in class PsiElementBasepublic 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