Package org.jtool.cfg
Class JUncoveredFieldReference
java.lang.Object
org.jtool.cfg.JReference
org.jtool.cfg.JVariableReference
org.jtool.cfg.JFieldReference
org.jtool.cfg.JUncoveredFieldReference
An class that represents a reference to a field, which is uncovered in a called method.
-
Field Summary
Fields inherited from class org.jtool.cfg.JReference
astNode, codeRange, declaringClassName, declaringMethodName, enclosingClassName, enclosingMethodName, fqn, inProject, isPrimitiveType, modifiers, name, referenceForm, type
-
Constructor Summary
ConstructorsConstructorDescriptionJUncoveredFieldReference
(org.eclipse.jdt.core.dom.ASTNode node, String className, String name, String referenceForm, String type, boolean primitive, int modifiers, boolean inProject, Set<CFGStatement> holdingNodes) Creates a new object that represents a reference to a field. -
Method Summary
Modifier and TypeMethodDescriptionReturns the CFG nodes that hold this uncovered field reference.boolean
Tests if this is a reference to a field, which is uncovered in a called method.Methods inherited from class org.jtool.cfg.JFieldReference
changeReferenceForm, getNameNode, getPrefix, getStartPosition, isAvailable, isEnumConstant, isField, isFieldAccess, isStatic, isSuper, isThis, isTransient, isTypeLiteral, isVolatile, setPrefix, toString
Methods inherited from class org.jtool.cfg.JVariableReference
isFinal, setProperties
Methods inherited from class org.jtool.cfg.JReference
equals, equals, findEnclosingClass, findEnclosingClassName, findEnclosingMethod, findEnclosingMethodName, getASTNode, getCodeRange, getDeclaringClassName, getDeclaringMethodName, getEnclosingClassName, getEnclosingElement, getEnclosingMethodName, getModifiers, getName, getParameterString, getQualifiedClassName, getQualifiedMethodName, getQualifiedName, getReceiverName, getReferenceForm, getSignature, getSignature, getType, getType, hashCode, isAliasReference, isConstructor, isDefault, isEnumConstant, isField, isInProject, isLocal, isLocalAccess, isMethod, isMethodCall, isPrimitiveType, isPrivate, isProtected, isPublic, isReturnValueReference, isUnsupportedReference, isVariableAccess, isVersatileReference, isVoidType
-
Constructor Details
-
JUncoveredFieldReference
public JUncoveredFieldReference(org.eclipse.jdt.core.dom.ASTNode node, String className, String name, String referenceForm, String type, boolean primitive, int modifiers, boolean inProject, Set<CFGStatement> holdingNodes) Creates a new object that represents a reference to a field. This constructor is not intended to be invoked by clients.- Parameters:
node
- the AST node corresponding to this referenceclassName
- the name of a class declaring the referenced fieldname
- the name of the referenced fieldreferenceForm
- the form of this referencetype
- the type of the referenced fieldprimitive
-true
if the type of the referenced field is primitive, otherwisefalse
modifiers
- the modifier information on the referenced fieldinProject
-true
if the referenced field exists in the target project, otherwisefalse
holdingNodes
- CFG nodes that hold this uncovered field reference
-
-
Method Details
-
getHoldingNodes
Returns the CFG nodes that hold this uncovered field reference.- Returns:
- the collection of the nodes
-
isUncoveredFieldReference
public boolean isUncoveredFieldReference()Tests if this is a reference to a field, which is uncovered in a called method.- Overrides:
isUncoveredFieldReference
in classJReference
- Returns:
true
if this is an uncovered field reference, otherwisefalse
-