gnu.mapping

Class LocationProc

Implemented Interfaces:
HasSetter, Named

public class LocationProc
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 Summary

LocationProc(Location loc)
LocationProc(Location loc, Procedure converter)

Method Summary

Object
apply0()
Object
apply1(Object value)
Location
getLocation()
Procedure
getSetter()
static LocationProc
makeNamed(Symbol name, Location loc)
void
pushConverter(Procedure converter)
void
set0(Object value)
String
toString()

Methods inherited from class gnu.mapping.Procedure0or1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Constructor Details

LocationProc

public LocationProc(Location loc)

LocationProc

public LocationProc(Location loc,
                    Procedure converter)

Method Details

apply0

public Object apply0()
            throws Throwable
Overrides:
apply0 in interface Procedure0or1

apply1

public Object apply1(Object value)
            throws Throwable
Overrides:
apply1 in interface Procedure0or1

getLocation

public final Location getLocation()

getSetter

public Procedure getSetter()
Specified by:
getSetter in interface HasSetter
Overrides:
getSetter in interface Procedure

makeNamed

public static LocationProc makeNamed(Symbol name,
                                     Location loc)

pushConverter

public void pushConverter(Procedure converter)

set0

public void set0(Object value)
            throws Throwable
Overrides:
set0 in interface Procedure

toString

public String toString()
Overrides:
toString in interface Procedure