public interface PsiParameter extends PsiVariable, JvmParameter, PsiJvmModifiersOwner
Iconable.IconFlags, Iconable.LastComputedIcon| Modifier and Type | Field and Description |
|---|---|
static ArrayFactory<PsiParameter> |
ARRAY_FACTORY |
static PsiParameter[] |
EMPTY_ARRAY
The empty array of PSI parameters which can be reused to avoid unnecessary allocations.
|
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Modifier and Type | Method and Description |
|---|---|
default PsiAnnotation [] |
getAnnotations() |
PsiElement |
getDeclarationScope()
Returns the element (method, lambda expression, foreach statement or catch block) in which the
parameter is declared.
|
java.lang.String |
getName()
Returns the name of the element.
|
PsiType |
getType()
Returns the type of the variable.
|
PsiTypeElement |
getTypeElement()
Returns the type element declaring the type of the variable.
|
boolean |
isVarArgs()
Checks if the parameter accepts a variable number of arguments.
|
computeConstantValue, getInitializer, getNameIdentifier, hasInitializer, normalizeDeclaration, setInitializer, setNamegetIdentifyingElementaccept, 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, toStringgetUserData, putUserDatagetNavigationElementisWritablecanNavigate, canNavigateToSource, navigateacceptgetAnnotation, getSourceElement, hasAnnotation, hasModifiergetModifierList, hasModifierPropertystatic final PsiParameter[] EMPTY_ARRAY
static final ArrayFactory<PsiParameter> ARRAY_FACTORY
PsiElement getDeclarationScope()
boolean isVarArgs()
PsiTypeElement getTypeElement()
getTypeElement in interface PsiVariablePsiType getType()
PsiVariablegetType in interface JvmParametergetType in interface PsiVariableParameter.getParameterizedType(),
Parameter.getAnnotatedType()default PsiAnnotation [] getAnnotations()
getAnnotations in interface JvmAnnotatedElementgetAnnotations in interface PsiJvmModifiersOwnergetAnnotations in interface PsiModifierListOwnerjava.lang.String getName()
PsiNamedElementgetName in interface JvmNamedElementgetName in interface PomNamedTargetgetName in interface PsiNamedElement