Package edu.umd.cs.findbugs.ba.bcp
Class FieldVariable
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.bcp.FieldVariable
-
-
Constructor Summary
Constructors Constructor Description FieldVariable(ValueNumber ref, java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)Constructor for instance fields.FieldVariable(java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)Constructor for static fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()Get the class name.java.lang.StringgetFieldName()Get the field name.java.lang.StringgetFieldSig()Get the field signature.booleanisStatic()Return whether or not this is a static field.booleansameAs(Variable other)Determine if the given Variable is the same as this one.java.lang.StringtoString()
-
-
-
Constructor Detail
-
FieldVariable
public FieldVariable(java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)Constructor for static fields.- Parameters:
className- the class namefieldName- the field namefieldSig- the field signature
-
FieldVariable
public FieldVariable(@Nullable ValueNumber ref, java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)Constructor for instance fields.- Parameters:
ref- ValueNumber of the object referenceclassName- the class namefieldName- the field namefieldSig- the field signature
-
-
Method Detail
-
isStatic
public boolean isStatic()
Return whether or not this is a static field.
-
getClassName
public java.lang.String getClassName()
Get the class name.
-
getFieldName
public java.lang.String getFieldName()
Get the field name.
-
getFieldSig
public java.lang.String getFieldSig()
Get the field signature.
-
sameAs
public boolean sameAs(Variable other)
Description copied from interface:VariableDetermine if the given Variable is the same as this one.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-