Package gnu.mapping
Class LocationProc<T>
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure0or1
-
- gnu.mapping.LocationProc<T>
-
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.
-
-
Field Summary
-
Fields inherited from class gnu.mapping.Procedure0or1
applyToObject
-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Constructor Summary
Constructors Constructor Description LocationProc(Location loc)
LocationProc(Location loc, Procedure converter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply0()
Object
apply1(Object value)
Location
getLocation()
Procedure
getSetter()
T
getValue()
static LocationProc
makeNamed(Symbol name, Location loc)
void
pushConverter(Procedure converter)
void
set0(Object value)
If HasSetter, the Procedure is called in the LHS of an assignment.String
toString()
-
Methods inherited from class gnu.mapping.Procedure0or1
apply2, apply3, apply4, applyN, applyToObject, numArgs
-
Methods inherited from class gnu.mapping.Procedure
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set1, setN, setSetter, setSourceLocation
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Method Detail
-
makeNamed
public static LocationProc makeNamed(Symbol name, Location loc)
-
pushConverter
public void pushConverter(Procedure converter)
-
apply0
public T apply0() throws Throwable
- Specified by:
apply0
in classProcedure0or1
- Throws:
Throwable
-
apply1
public Object apply1(Object value) throws Throwable
- Specified by:
apply1
in classProcedure0or1
- Throws:
Throwable
-
set0
public void set0(Object value) throws Throwable
Description copied from class:Procedure
If HasSetter, the Procedure is called in the LHS of an assignment.
-
getSetter
public Procedure getSetter()
-
getLocation
public final Location getLocation()
-
-