Class FieldVariable

java.lang.Object
edu.umd.cs.findbugs.ba.bcp.FieldVariable
All Implemented Interfaces:
Variable

public class FieldVariable extends Object implements Variable
  • Constructor Details

    • FieldVariable

      public FieldVariable(String className, String fieldName, String fieldSig)
      Constructor for static fields.
      Parameters:
      className - the class name
      fieldName - the field name
      fieldSig - the field signature
    • FieldVariable

      public FieldVariable(@Nullable ValueNumber ref, String className, String fieldName, String fieldSig)
      Constructor for instance fields.
      Parameters:
      ref - ValueNumber of the object reference
      className - the class name
      fieldName - the field name
      fieldSig - the field signature
  • Method Details

    • isStatic

      public boolean isStatic()
      Return whether or not this is a static field.
    • getClassName

      public String getClassName()
      Get the class name.
    • getFieldName

      public String getFieldName()
      Get the field name.
    • getFieldSig

      public 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.
      Specified by:
      sameAs in interface Variable
    • toString

      public String toString()
      Overrides:
      toString in class Object