Package edu.umd.cs.findbugs.ba.bcp
Class FieldVariable
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.bcp.FieldVariable
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
className
private java.lang.String
fieldName
private java.lang.String
fieldSig
private ValueNumber
ref
-
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.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()
-
-
-
Field Detail
-
ref
private final ValueNumber ref
-
className
private final java.lang.String className
-
fieldName
private final java.lang.String fieldName
-
fieldSig
private final java.lang.String fieldSig
-
-
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:Variable
Determine if the given Variable is the same as this one.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-