public class RefParameterImpl extends RefJavaElementImpl implements RefParameter
IS_REACHABLE_MASK, LOGmyChildren, myFlags, myManagerVALUE_IS_NOT_CONST, VALUE_UNDEFINEDEMPTY_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, setAccessModifieraddInReference, addOutReference, addSuppression, getContainingEntry, getContainingFile, getInReferences, getModule, getOutReferences, getPointer, getPsiElement, getURL, getVirtualFile, hasSuspiciousCallers, isDeleted, isEntry, isPermanentEntry, isReachable, isReferenced, isSuppressed, isSuspicious, isValid, setEntry, setPermanentEntry, setReachableadd, checkFlag, getChildren, getName, getOwner, getQualifiedName, getRefManager, removeChild, setFlag, setOwner, toStringchangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetActualValueIfSame, getElementgetAccessModifier, getOutTypeReferences, getPsiElement, isFinal, isStatic, isSyntheticJSPgetContainingEntry, getInReferences, getModule, getOutReferences, getPointer, isEntry, isPermanentEntry, isReachable, isReferencedgetChildren, getIcon, getName, getOwner, getQualifiedName, getRefManager, isValidgetUserData, putUserDataadd, removeChild, setOwnerpublic void parameterReferenced(boolean forWriting)
RefParameterparameterReferenced in interface RefParameterforWriting - true if the parameter is marked as referenced for writing, false
otherwise.public boolean isUsedForReading()
RefParameterisUsedForReading in interface RefParameterpublic int getUsageCount()
getUsageCount in interface RefParameterpublic boolean isUsedForWriting()
RefParameterisUsedForWriting in interface RefParameterpublic void accept(RefVisitor visitor)
RefEntityaccept in interface RefEntityaccept in class RefEntityImplvisitor - the visitor to accept.public int getIndex()
RefParametergetIndex in interface RefParameterpublic void buildReferences()
buildReferences in class RefElementImplpublic java.lang.Object getActualConstValue()
RefParameterRefParameter.VALUE_IS_NOT_CONST.getActualConstValue in interface RefParameterprotected void initialize()
initialize in class RefElementImplpublic java.lang.String getExternalName()
RefEntitygetExternalName in interface RefEntitygetExternalName in class RefElementImplpublic UParameter getUastElement()
getUastElement in interface RefJavaElementgetUastElement in interface RefParameterpublic static java.lang.Object getAccessibleExpressionValue(UExpression expression,
java.util.function.Supplier<? extends PsiElement> accessPlace)