Class FieldLocation<T>

Direct Known Subclasses:
StaticFieldLocation

public class FieldLocation<T> extends ClassMemberLocation<T>
  • Field Details

  • Constructor Details

  • Method Details

    • isIndirectLocation

      public boolean isIndirectLocation()
    • setProcedure

      public void setProcedure()
    • setSyntax

      public void setSyntax()
    • isProcedureOrSyntax

      public boolean isProcedureOrSyntax()
    • setDeclaration

      public void setDeclaration(Declaration decl)
    • getField

      public Field getField()
    • getFType

      public Type getFType()
      Get the type of the field.
    • getDeclaration

      public Declaration getDeclaration()
    • get

      public T get()
      Description copied from class: Location
      Get the current value of this location.
      Specified by:
      get in class Location<T>
    • get

      public T get(T defaultValue)
      Overrides:
      get in class ClassMemberLocation<T>
    • set

      public void set(Object newValue)
      Overrides:
      set in class ClassMemberLocation<T>
    • setWithSave

      public Object setWithSave(T newValue)
      Description copied from class: Location
      Set a value, but return cookie so old value can be restored. This is intended for fluid-let where (in the case of multiple threads) a simple save-restore isn't always the right thing.
      Overrides:
      setWithSave in class Location<T>
    • setRestore

      public void setRestore(Object oldValue)
      Description copied from class: Location
      Restore an old value.
      Overrides:
      setRestore in class Location<T>
      Parameters:
      oldValue - the return value from a prior setWithSave.
    • isConstant

      public boolean isConstant()
      Overrides:
      isConstant in class ClassMemberLocation<T>
    • isBound

      public boolean isBound()
      Overrides:
      isBound in class ClassMemberLocation<T>
    • make

      public static FieldLocation make(Object instance, Declaration decl)
    • make

      public static FieldLocation make(Object instance, String cname, String fldName)
    • toString

      public String toString()
      Overrides:
      toString in class Location<T>