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 Tapply0()java.lang.Objectapply1(java.lang.Object value)LocationgetLocation()ProceduregetSetter()TgetValue()static LocationProcmakeNamed(Symbol name, Location loc)voidpushConverter(Procedure converter)voidset0(java.lang.Object value)If HasSetter, the Procedure is called in the LHS of an assignment.java.lang.StringtoString()-
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)
-
getValue
public final T getValue() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
apply0
public T apply0() throws java.lang.Throwable
- Specified by:
apply0in classProcedure0or1- Throws:
java.lang.Throwable
-
apply1
public java.lang.Object apply1(java.lang.Object value) throws java.lang.Throwable- Specified by:
apply1in classProcedure0or1- Throws:
java.lang.Throwable
-
set0
public void set0(java.lang.Object value) throws java.lang.ThrowableDescription copied from class:ProcedureIf HasSetter, the Procedure is called in the LHS of an assignment.
-
getSetter
public Procedure getSetter()
-
getLocation
public final Location getLocation()
-
-