public interface RefParameter extends RefJavaElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
VALUE_IS_NOT_CONST |
static java.lang.Object |
VALUE_UNDEFINED |
EMPTY_ELEMENTS_ARRAY| Modifier and Type | Method and Description |
|---|---|
default java.lang.Object |
getActualConstValue()
If all invocations of the method pass the same value to the parameter, returns
that value (the name of a static final field or the text of a literal expression).
|
default java.lang.String |
getActualValueIfSame()
Deprecated.
|
default PsiParameter |
getElement()
Deprecated.
|
int |
getIndex()
Returns the index of the parameter in the parameter list of its owner method.
|
default UParameter |
getUastElement() |
default int |
getUsageCount() |
boolean |
isUsedForReading()
Checks if the parameter is used for reading.
|
boolean |
isUsedForWriting()
Checks if the parameter is used for writing.
|
void |
parameterReferenced(boolean forWriting)
Marks the parameter as referenced for reading or writing.
|
getAccessModifier, getOutTypeReferences, getPsiElement, isFinal, isStatic, isSyntheticJSPgetContainingEntry, getInReferences, getModule, getOutReferences, getPointer, isEntry, isPermanentEntry, isReachable, isReferencedaccept, getChildren, getExternalName, getIcon, getName, getOwner, getQualifiedName, getRefManager, isValidgetUserData, putUserDatastatic final java.lang.Object VALUE_IS_NOT_CONST
static final java.lang.Object VALUE_UNDEFINED
boolean isUsedForReading()
boolean isUsedForWriting()
int getIndex()
@Deprecated default java.lang.String getActualValueIfSame()
getActualConstValue()default java.lang.Object getActualConstValue()
VALUE_IS_NOT_CONST.void parameterReferenced(boolean forWriting)
forWriting - true if the parameter is marked as referenced for writing, false
otherwise.default UParameter getUastElement()
getUastElement in interface RefJavaElement@Deprecated default PsiParameter getElement()
getElement in interface RefElementgetElement in interface RefJavaElementdefault int getUsageCount()