Package gnu.mapping

Class LocationProc<T>

  • All Implemented Interfaces:
    HasSetter, Named

    public class LocationProc<T>
    extends Procedure0or1
    implements HasSetter
    A Procedure that evaluates to the value of a Location. Calling it with one argument sets the value, for compatibility with the "parameter objects" of SRFI-39.
    • Constructor Detail

      • LocationProc

        public LocationProc​(Location loc)
    • Method Detail

      • pushConverter

        public void pushConverter​(Procedure converter)
      • getValue

        public final T getValue()
                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • apply0

        public T apply0()
                 throws java.lang.Throwable
        Specified by:
        apply0 in class Procedure0or1
        Throws:
        java.lang.Throwable
      • apply1

        public java.lang.Object apply1​(java.lang.Object value)
                                throws java.lang.Throwable
        Specified by:
        apply1 in class Procedure0or1
        Throws:
        java.lang.Throwable
      • set0

        public void set0​(java.lang.Object value)
                  throws java.lang.Throwable
        Description copied from class: Procedure
        If HasSetter, the Procedure is called in the LHS of an assignment.
        Overrides:
        set0 in class Procedure
        Throws:
        java.lang.Throwable
      • getLocation

        public final Location getLocation()
      • toString

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