Class FieldVariable

  • All Implemented Interfaces:
    Variable

    public class FieldVariable
    extends java.lang.Object
    implements Variable
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 name
        fieldName - the field name
        fieldSig - 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 reference
        className - the class name
        fieldName - the field name
        fieldSig - 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.
        Specified by:
        sameAs in interface Variable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object