public class MakeSplice extends Procedure1
($splice$ arg)
.
If arg
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.Modifier and Type | Field and Description |
---|---|
static MakeSplice |
instance |
static MakeSplice |
keywordsAllowedInstance |
static QuoteExp |
quoteInstance |
static QuoteExp |
quoteKeywordsAllowedInstance |
applyToObject
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
nameKey
Modifier and Type | Method and Description |
---|---|
static void |
addAll(java.util.ArrayList<java.lang.Object> list,
java.lang.Object values)
Helper method called by compiled code.
|
java.lang.Object |
apply1(java.lang.Object arg1) |
static Expression |
argIfSplice(Expression exp) |
static void |
copyTo(java.lang.Object[] target,
int start,
int size,
java.lang.Object values) |
static void |
copyTo(java.lang.Object target,
int start,
int size,
java.lang.Object values,
Type elementType) |
static int |
count(java.lang.Object values) |
boolean |
getKeywordsAllowed() |
apply0, apply2, apply3, apply4, applyN, applyToObject, numArgs
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public static final MakeSplice instance
public static final MakeSplice keywordsAllowedInstance
public static final QuoteExp quoteInstance
public static final QuoteExp quoteKeywordsAllowedInstance
public boolean getKeywordsAllowed()
public static Expression argIfSplice(Expression exp)
public java.lang.Object apply1(java.lang.Object arg1) throws java.lang.Throwable
apply1
in class Procedure1
java.lang.Throwable
public static int count(java.lang.Object values)
public static void copyTo(java.lang.Object[] target, int start, int size, java.lang.Object values)
public static void copyTo(java.lang.Object target, int start, int size, java.lang.Object values, Type elementType)
public static void addAll(java.util.ArrayList<java.lang.Object> list, java.lang.Object values)