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, setName
getIdentifyingElement
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
getNavigationElement
isWritable
canNavigate, canNavigateToSource, navigate
accept
getAnnotation, getSourceElement, hasAnnotation, hasModifier
getModifierList, hasModifierProperty
static final PsiParameter[] EMPTY_ARRAY
static final ArrayFactory<PsiParameter> ARRAY_FACTORY
PsiElement getDeclarationScope()
boolean isVarArgs()
PsiTypeElement getTypeElement()
getTypeElement
in interface PsiVariable
PsiType getType()
PsiVariable
getType
in interface JvmParameter
getType
in interface PsiVariable
Parameter.getParameterizedType()
,
Parameter.getAnnotatedType()
default PsiAnnotation [] getAnnotations()
getAnnotations
in interface JvmAnnotatedElement
getAnnotations
in interface PsiJvmModifiersOwner
getAnnotations
in interface PsiModifierListOwner
java.lang.String getName()
PsiNamedElement
getName
in interface JvmNamedElement
getName
in interface PomNamedTarget
getName
in interface PsiNamedElement