Constructor and Description |
---|
FieldVariable(java.lang.String className,
java.lang.String fieldName,
java.lang.String fieldSig)
Constructor for static fields.
|
FieldVariable(ValueNumber ref,
java.lang.String className,
java.lang.String fieldName,
java.lang.String fieldSig)
Constructor for instance fields.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Get the class name.
|
java.lang.String |
getFieldName()
Get the field name.
|
java.lang.String |
getFieldSig()
Get the field signature.
|
boolean |
isStatic()
Return whether or not this is a static field.
|
boolean |
sameAs(Variable other)
Determine if the given Variable is the same as this one.
|
java.lang.String |
toString() |
public FieldVariable(java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)
className
- the class namefieldName
- the field namefieldSig
- the field signaturepublic FieldVariable(@Nullable ValueNumber ref, java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)
ref
- ValueNumber of the object referenceclassName
- the class namefieldName
- the field namefieldSig
- the field signaturepublic boolean isStatic()
public java.lang.String getClassName()
public java.lang.String getFieldName()
public java.lang.String getFieldSig()
public boolean sameAs(Variable other)
Variable
public java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.