Package gnu.kawa.functions
Class ApplyToArgs
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.ProcedureN
-
- gnu.kawa.functions.ApplyToArgs
-
- All Implemented Interfaces:
Named
public class ApplyToArgs extends ProcedureN
Implement the standard Scheme function "apply". This has been generalized so that the last (list argument) can be any sequence, or any primitive array coercible to Object[].
-
-
Field Summary
Fields Modifier and Type Field Description static MethodHandle
applyToConsumerA2A
static MethodHandle
applyToObjectA2A
-
Fields inherited from class gnu.mapping.ProcedureN
applyToObject, noArgs
-
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 ApplyToArgs(String name, Language language)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply1(Object arg1, Object arg2)
Object
apply2(Object arg1, Object arg2)
Object
apply3(Object arg1, Object arg2, Object arg3)
Object
apply4(Object arg1, Object arg2, Object arg3, Object arg4)
Object
applyN(Object[] args)
static Object
applyToConsumerA2A(Procedure proc, CallContext ctx)
static Object
applyToObjectA2A(Procedure proc, CallContext ctx)
static Object
index(CharSequence str, Object index)
-
Methods inherited from class gnu.mapping.ProcedureN
applyToObject
-
Methods inherited from class gnu.mapping.Procedure
apply0, apply1, applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Field Detail
-
applyToObjectA2A
public static final MethodHandle applyToObjectA2A
-
applyToConsumerA2A
public static final MethodHandle applyToConsumerA2A
-
-
Method Detail
-
index
public static Object index(CharSequence str, Object index)
-
applyToConsumerA2A
public static Object applyToConsumerA2A(Procedure proc, CallContext ctx) throws Throwable
- Throws:
Throwable
-
applyToObjectA2A
public static Object applyToObjectA2A(Procedure proc, CallContext ctx) throws Throwable
- Throws:
Throwable
-
-