public class RefFieldImpl extends RefJavaElementImpl implements RefField
IS_REACHABLE_MASK, LOG
myChildren, myFlags, myManager
ENUM_CONSTANT, IMPLICITLY_READ, IMPLICITLY_WRITTEN
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 PsiField |
findPsiField(PsiManager manager,
java.lang.String externalName) |
PsiField |
getElement()
Deprecated.
|
java.lang.String |
getExternalName()
Returns a user-readable name for the element corresponding to the node.
|
RefClass |
getOwnerClass()
Returns the reference graph node for the class to which the field belongs.
|
UField |
getUastElement() |
protected void |
initialize() |
boolean |
isOnlyAssignedInInitializer()
Checks if the only write access of the field is its initializer.
|
boolean |
isSuspicious() |
boolean |
isUsedForReading()
Checks if the field is used for reading.
|
boolean |
isUsedForWriting()
Checks if the field is used for writing.
|
protected void |
markReferenced(RefElementImpl refFrom,
boolean forWriting,
boolean forReading,
UExpression expressionFrom) |
getAccessModifier, getIcon, getName, getOutTypeReferences, isFinal, isProtectedAccessForbidden, isStatic, isSuspiciousRecursive, isSyntheticJSP, referenceRemoved, setAccessModifier
addInReference, addOutReference, addSuppression, getContainingEntry, getContainingFile, getInReferences, getModule, getOutReferences, getPointer, getPsiElement, getURL, getVirtualFile, hasSuspiciousCallers, isDeleted, isEntry, isPermanentEntry, isReachable, isReferenced, isSuppressed, 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
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
protected void initialize()
initialize
in class RefElementImpl
@Deprecated public PsiField getElement()
getElement
in interface RefElement
getElement
in interface RefField
getElement
in interface RefJavaElement
public UField getUastElement()
getUastElement
in interface RefField
getUastElement
in interface RefJavaElement
protected void markReferenced(RefElementImpl refFrom, boolean forWriting, boolean forReading, UExpression expressionFrom)
markReferenced
in class RefJavaElementImpl
public boolean isUsedForReading()
RefField
isUsedForReading
in interface RefField
public boolean isUsedForWriting()
RefField
isUsedForWriting
in interface RefField
public boolean isOnlyAssignedInInitializer()
RefField
isOnlyAssignedInInitializer
in interface RefField
public void accept(RefVisitor visitor)
RefEntity
accept
in interface RefEntity
accept
in class RefEntityImpl
visitor
- the visitor to accept.public void buildReferences()
buildReferences
in class RefElementImpl
public RefClass getOwnerClass()
RefField
getOwnerClass
in interface RefField
public java.lang.String getExternalName()
RefEntity
getExternalName
in interface RefEntity
getExternalName
in class RefElementImpl
public static PsiField findPsiField(PsiManager manager, java.lang.String externalName)
public boolean isSuspicious()
isSuspicious
in class RefElementImpl