Package gnu.kawa.functions
Class MakeSplice
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure1
-
- gnu.kawa.functions.MakeSplice
-
- All Implemented Interfaces:
Named
public class MakeSplice extends Procedure1
A pseudo-function whose argument is splice into an outer argument list. Represented by($splice$ arg)
. Ifarg
is the list or array[a b c]
then(fun x ($splice$ arg) y)
is(fun x a b c y)
. Processed at compile-time only.
-
-
Field Summary
Fields Modifier and Type Field Description static MakeSplice
instance
static MakeSplice
keywordsAllowedInstance
static QuoteExp
quoteInstance
static QuoteExp
quoteKeywordsAllowedInstance
-
Fields inherited from class gnu.mapping.Procedure1
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addAll(ArrayList<Object> list, Object values)
Helper method called by compiled code.Object
apply1(Object arg1)
static Expression
argIfSplice(Expression exp)
static void
copyTo(Object[] target, int start, int size, Object values)
static void
copyTo(Object target, int start, int size, Object values, Type elementType)
static int
count(Object values)
boolean
getKeywordsAllowed()
-
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, applyToObject, numArgs
-
Methods inherited from class gnu.mapping.Procedure
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Field Detail
-
instance
public static final MakeSplice instance
-
keywordsAllowedInstance
public static final MakeSplice keywordsAllowedInstance
-
quoteInstance
public static final QuoteExp quoteInstance
-
quoteKeywordsAllowedInstance
public static final QuoteExp quoteKeywordsAllowedInstance
-
-
Method Detail
-
getKeywordsAllowed
public boolean getKeywordsAllowed()
-
argIfSplice
public static Expression argIfSplice(Expression exp)
-
apply1
public Object apply1(Object arg1) throws Throwable
- Specified by:
apply1
in classProcedure1
- Throws:
Throwable
-
count
public static int count(Object values)
-
copyTo
public static void copyTo(Object target, int start, int size, Object values, Type elementType)
-
-