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). Ifargis 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 MakeSpliceinstancestatic MakeSplicekeywordsAllowedInstancestatic QuoteExpquoteInstancestatic QuoteExpquoteKeywordsAllowedInstance-
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 voidaddAll(java.util.ArrayList<java.lang.Object> list, java.lang.Object values)Helper method called by compiled code.java.lang.Objectapply1(java.lang.Object arg1)static ExpressionargIfSplice(Expression exp)static voidcopyTo(java.lang.Object[] target, int start, int size, java.lang.Object values)static voidcopyTo(java.lang.Object target, int start, int size, java.lang.Object values, Type elementType)static intcount(java.lang.Object values)booleangetKeywordsAllowed()-
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 java.lang.Object apply1(java.lang.Object arg1) throws java.lang.Throwable- Specified by:
apply1in classProcedure1- Throws:
java.lang.Throwable
-
count
public static int count(java.lang.Object values)
-
copyTo
public static void copyTo(java.lang.Object[] target, int start, int size, java.lang.Object values)
-
copyTo
public static void copyTo(java.lang.Object target, int start, int size, java.lang.Object values, Type elementType)
-
addAll
public static void addAll(java.util.ArrayList<java.lang.Object> list, java.lang.Object values)Helper method called by compiled code.
-
-