public class LightCompactConstructorParameter extends LightParameter 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_NAVIGATION_ITEM_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAY| Constructor and Description |
|---|
LightCompactConstructorParameter(java.lang.String name,
PsiType type,
PsiElement declarationScope,
PsiRecordComponent component) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
accept, getDeclarationScope, isVarArgs, toStringcomputeConstantValue, getElementIcon, getInitializer, getModifierList, getName, getNameIdentifier, getOriginInfo, getType, getTypeElement, hasInitializer, hasModifierProperty, isVisibilitySupported, normalizeDeclaration, setBaseIcon, setModifierList, setModifiers, setName, setOriginInfoadd, addAfter, addBefore, checkAdd, checkDelete, copy, delete, findElementAt, getChildren, getLanguage, getManager, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextRange, isPhysical, isValid, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, 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, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDatagetAnnotations, getName, getType, getTypeElementcomputeConstantValue, getInitializer, getNameIdentifier, hasInitializer, normalizeDeclaration, setInitializer, setNamegetIdentifyingElementisWritablecanNavigate, canNavigateToSource, navigateacceptgetAnnotation, getSourceElement, hasAnnotation, hasModifiergetModifierList, hasModifierPropertygetPresentationpublic LightCompactConstructorParameter(java.lang.String name,
PsiType type,
PsiElement declarationScope,
PsiRecordComponent component)
public 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 PsiFile getContainingFile()
PsiElementgetContainingFile in interface PsiElementgetContainingFile in class LightElementpublic 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 LightElement