public interface PsiJvmModifiersOwner extends PsiModifierListOwner, JvmModifiersOwner
PsiLocalVariable
or PsiRequiresStatement
.
This is a bridge interface between them.
Known PsiModifierListOwners which are also JvmModifiersOwners:
PsiJvmMember
inheritors, PsiParameter
and PsiPackage
.
Iconable.IconFlags, Iconable.LastComputedIcon
ARRAY_FACTORY, EMPTY_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
default PsiAnnotation |
getAnnotation(java.lang.String fqn) |
default PsiAnnotation [] |
getAnnotations() |
default PsiElement |
getSourceElement() |
default boolean |
hasAnnotation(java.lang.String fqn) |
default boolean |
hasModifier(JvmModifier modifier)
Checks if the element effectively has the specified modifier.
|
getModifierList, hasModifierProperty
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, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
getUserData, putUserData
accept
default PsiAnnotation [] getAnnotations()
getAnnotations
in interface JvmAnnotatedElement
getAnnotations
in interface PsiModifierListOwner
default PsiAnnotation getAnnotation(java.lang.String fqn)
getAnnotation
in interface JvmAnnotatedElement
getAnnotation
in interface PsiModifierListOwner
default boolean hasAnnotation(java.lang.String fqn)
hasAnnotation
in interface JvmAnnotatedElement
hasAnnotation
in interface PsiModifierListOwner
default boolean hasModifier(JvmModifier modifier)
JvmModifiersOwner
hasModifier
in interface JvmModifiersOwner
hasModifier
in interface PsiModifierListOwner
modifier
- the modifier to checkdefault PsiElement getSourceElement()
getSourceElement
in interface JvmElement
null
if no source element is available