public class LightRecordField extends LightField implements LightRecordMember
Iconable.IconFlags, Iconable.LastComputedIconmyManagerFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYARRAY_FACTORY, EMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
LightRecordField(PsiManager manager,
PsiField field,
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() |
int |
getTextOffset()
Returns the offset in the file to which the caret should be placed
when performing the navigation to the element.
|
PsiType |
getType()
Returns the type of the variable.
|
SearchScope |
getUseScope()
Returns the scope in which references to this element are searched.
|
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.)
|
computeConstantValue, copy, getContainingClass, getDocComment, getInitializer, getModifierList, getName, getNameIdentifier, getText, getTextRange, getTypeElement, hasInitializer, hasModifierProperty, isDeprecated, isEquivalentTo, isValid, normalizeDeclaration, setInitializer, setName, toStringaccept, add, addAfter, addBefore, checkAdd, checkDelete, delete, findElementAt, getChildren, getLanguage, getManager, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getTextLength, isPhysical, replace, setNavigationElement, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, navigate, notNullChild, processDeclarations, 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, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, 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, isEquivalentTo, isPhysical, isValid, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDatagetSourceElement, hasModifiergetIdentifyingElementgetPresentationcanNavigate, canNavigateToSource, navigatepublic LightRecordField(PsiManager manager, PsiField field, PsiClass containingClass, PsiRecordComponent component)
public PsiRecordComponent getRecordComponent()
getRecordComponent in interface LightRecordMemberpublic int getTextOffset()
PsiElementPsiNamedElement, this should return the offset in the file of the
name identifier.)getTextOffset in interface PsiElementgetTextOffset in class LightElementpublic 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 interface PsiTargetgetNavigationElement in class LightElementpublic boolean isWritable()
PsiElementisWritable in interface PomRenameableTarget<PsiElement>isWritable in interface PsiElementisWritable in class LightElementpublic PsiFile getContainingFile()
PsiElementgetContainingFile in interface PsiElementgetContainingFile in class LightElementpublic PsiType getType()
PsiVariablegetType in interface JvmFieldgetType in interface PsiFieldgetType in interface PsiVariablegetType in class LightFieldField.getGenericType(),
Field.getAnnotatedType()public PsiAnnotation [] getAnnotations()
getAnnotations in interface JvmAnnotatedElementgetAnnotations in interface PsiJvmModifiersOwnergetAnnotations in interface PsiModifierListOwnerpublic boolean hasAnnotation(java.lang.String fqn)
hasAnnotation in interface JvmAnnotatedElementhasAnnotation in interface PsiJvmModifiersOwnerhasAnnotation in interface PsiModifierListOwnerpublic PsiAnnotation getAnnotation(java.lang.String fqn)
getAnnotation in interface JvmAnnotatedElementgetAnnotation in interface PsiJvmModifiersOwnergetAnnotation in interface PsiModifierListOwnerpublic javax.swing.Icon getElementIcon(int flags)
getElementIcon in class ElementBasepublic PsiElement getContext()
PsiElementgetParent(),
but the context can be overridden for some elements like code fragments (see
JavaCodeFragmentFactory.createCodeBlockCodeFragment(String, PsiElement, boolean)).getContext in interface PsiElementgetContext in class PsiElementBasepublic SearchScope getUseScope()
PsiElementgetUseScope in interface PsiElementgetUseScope in class LightFieldPsiSearchHelper.getUseScope(PsiElement)