public class RefParameterImpl extends RefJavaElementImpl implements RefParameter
IS_REACHABLE_MASK, LOG
myChildren, myFlags, myManager
VALUE_IS_NOT_CONST, VALUE_UNDEFINED
EMPTY_ELEMENTS_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
accept(RefVisitor visitor)
Accepts the specified visitor and passes self to one of its visit methods.
|
void |
buildReferences() |
static java.lang.Object |
getAccessibleExpressionValue(UExpression expression,
java.util.function.Supplier<? extends PsiElement> accessPlace) |
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).
|
java.lang.String |
getExternalName()
Returns a user-readable name for the element corresponding to the node.
|
int |
getIndex()
Returns the index of the parameter in the parameter list of its owner method.
|
UParameter |
getUastElement() |
int |
getUsageCount() |
protected void |
initialize() |
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, getIcon, getName, getOutTypeReferences, isFinal, isProtectedAccessForbidden, isStatic, isSuspiciousRecursive, isSyntheticJSP, markReferenced, referenceRemoved, setAccessModifier
addInReference, addOutReference, addSuppression, getContainingEntry, getContainingFile, getInReferences, getModule, getOutReferences, getPointer, getPsiElement, getURL, getVirtualFile, hasSuspiciousCallers, isDeleted, isEntry, isPermanentEntry, isReachable, isReferenced, isSuppressed, isSuspicious, isValid, setEntry, setPermanentEntry, setReachable
add, checkFlag, getChildren, getName, getOwner, getQualifiedName, getRefManager, removeChild, setFlag, setOwner, toString
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActualValueIfSame, getElement
getAccessModifier, getOutTypeReferences, getPsiElement, isFinal, isStatic, isSyntheticJSP
getContainingEntry, getInReferences, getModule, getOutReferences, getPointer, isEntry, isPermanentEntry, isReachable, isReferenced
getChildren, getIcon, getName, getOwner, getQualifiedName, getRefManager, isValid
getUserData, putUserData
add, removeChild, setOwner
public void parameterReferenced(boolean forWriting)
RefParameter
parameterReferenced
in interface RefParameter
forWriting
- true if the parameter is marked as referenced for writing, false
otherwise.public boolean isUsedForReading()
RefParameter
isUsedForReading
in interface RefParameter
public int getUsageCount()
getUsageCount
in interface RefParameter
public boolean isUsedForWriting()
RefParameter
isUsedForWriting
in interface RefParameter
public void accept(RefVisitor visitor)
RefEntity
accept
in interface RefEntity
accept
in class RefEntityImpl
visitor
- the visitor to accept.public int getIndex()
RefParameter
getIndex
in interface RefParameter
public void buildReferences()
buildReferences
in class RefElementImpl
public java.lang.Object getActualConstValue()
RefParameter
RefParameter.VALUE_IS_NOT_CONST
.getActualConstValue
in interface RefParameter
protected void initialize()
initialize
in class RefElementImpl
public java.lang.String getExternalName()
RefEntity
getExternalName
in interface RefEntity
getExternalName
in class RefElementImpl
public UParameter getUastElement()
getUastElement
in interface RefJavaElement
getUastElement
in interface RefParameter
public static java.lang.Object getAccessibleExpressionValue(UExpression expression, java.util.function.Supplier<? extends PsiElement> accessPlace)