public class LightRecordMethod extends LightMethod implements LightRecordMember
Iconable.IconFlags, Iconable.LastComputedIcon
myContainingClass, myMethod, mySubstitutor
myManager
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
ARRAY_FACTORY, EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
LightRecordMethod(PsiManager manager,
PsiMethod method,
PsiClass containingClass,
PsiRecordComponent component) |
Modifier and Type | Method and Description |
---|---|
PsiAnnotation |
getAnnotation(java.lang.String fqn) |
PsiAnnotation [] |
getAnnotations() |
PsiFile |
getContainingFile()
Returns the file containing the PSI element.
|
PsiElement |
getContext()
Returns the element which should be used as the parent of this element in a tree up
walk during a resolve operation.
|
javax.swing.Icon |
getElementIcon(int flags) |
PsiElement |
getNavigationElement()
Returns the PSI element which should be used as a navigation target
when navigation to this PSI element is requested.
|
PsiRecordComponent |
getRecordComponent() |
PsiType |
getReturnType()
Returns the return type of the method.
|
int |
getTextOffset()
Returns the offset in the file to which the caret should be placed
when performing the navigation to the element.
|
boolean |
hasAnnotation(java.lang.String fqn) |
boolean |
isWritable()
Checks if the contents of the element can be modified (if it belongs to a
non-read-only source file.)
|
accept, copy, findDeepestSuperMethod, findDeepestSuperMethods, findSuperMethods, findSuperMethods, findSuperMethods, findSuperMethodSignaturesIncludingStatic, getBody, getContainingClass, getDocComment, getHierarchicalMethodSignature, getModifierList, getName, getNameIdentifier, getParameterList, getPresentation, getReturnTypeElement, getSignature, getText, getTextRange, getThrowsList, getTypeParameterList, getTypeParameters, getUseScope, hasModifierProperty, hasTypeParameters, isConstructor, isDeprecated, isEquivalentTo, isValid, isVarArgs, isVisibilitySupported, setName, toString
add, addAfter, addBefore, checkAdd, checkDelete, delete, findElementAt, getChildren, getLanguage, getManager, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getTextLength, isPhysical, replace, setNavigationElement, textMatches, textMatches, textToCharArray
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getFirstChild, getLastChild, getOriginalElement, getProject, getReference, getReferences, getResolveScope, navigate, notNullChild, processDeclarations, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
getUserData, putUserData
getParameters, getThrowsTypes, hasParameters
getIdentifyingElement
canNavigate, canNavigateToSource, navigate
getSourceElement, hasModifier
public LightRecordMethod(PsiManager manager, PsiMethod method, PsiClass containingClass, PsiRecordComponent component)
public PsiRecordComponent getRecordComponent()
getRecordComponent
in interface LightRecordMember
public int getTextOffset()
PsiElement
PsiNamedElement
, this should return the offset in the file of the
name identifier.)getTextOffset
in interface PsiElement
getTextOffset
in class LightElement
public PsiElement getNavigationElement()
PsiElement
this
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 PsiElement
getNavigationElement
in interface PsiTarget
getNavigationElement
in class LightElement
public boolean isWritable()
PsiElement
isWritable
in interface PomRenameableTarget<PsiElement>
isWritable
in interface PsiElement
isWritable
in class LightElement
public PsiFile getContainingFile()
PsiElement
getContainingFile
in interface PsiElement
getContainingFile
in class LightMethod
public PsiType getReturnType()
PsiMethod
getReturnType
in interface JvmMethod
getReturnType
in interface PsiMethod
getReturnType
in class LightMethod
Method.getGenericReturnType()
,
Method.getAnnotatedReturnType()
public PsiAnnotation [] getAnnotations()
getAnnotations
in interface JvmAnnotatedElement
getAnnotations
in interface PsiJvmModifiersOwner
getAnnotations
in interface PsiModifierListOwner
public boolean hasAnnotation(java.lang.String fqn)
hasAnnotation
in interface JvmAnnotatedElement
hasAnnotation
in interface PsiJvmModifiersOwner
hasAnnotation
in interface PsiModifierListOwner
public PsiAnnotation getAnnotation(java.lang.String fqn)
getAnnotation
in interface JvmAnnotatedElement
getAnnotation
in interface PsiJvmModifiersOwner
getAnnotation
in interface PsiModifierListOwner
public javax.swing.Icon getElementIcon(int flags)
getElementIcon
in class LightMethod
public PsiElement getContext()
PsiElement
getParent()
,
but the context can be overridden for some elements like code fragments (see
JavaCodeFragmentFactory.createCodeBlockCodeFragment(String, PsiElement, boolean)
).getContext
in interface PsiElement
getContext
in class LightMethod