Package bridge

Class Invocation.Accessor

java.lang.Object
bridge.Invocation.Accessor
Enclosing class:
Invocation

public final class Invocation.Accessor extends Object
A class that is used to execute field invocations
  • Method Details

    • get

      public <@Polymorphic T> T get()
      Gets the field value
      Returns:
      The current, real value the field holds.
    • getAndSet

      public <@Polymorphic T> T getAndSet(Object value)
      Gets, then sets, the field value
      Parameters:
      value - The new value the field will hold.
      Returns:
      The previous, real value the field held.
    • set

      public <T> T set(@Polymorphic T value)
      Sets the field value
      Parameters:
      value - The new value the field will hold.
      Returns:
      That same, real value, without any conversions.
    • setAndGet

      public <@Polymorphic T> T setAndGet(Object value)
      Sets, then gets, the field value
      Parameters:
      value - The new value the field will hold.
      Returns:
      That same, real value, with all required conversions applied.