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 QuoteExp |
quoteInstance |
compilerKey, compilerXKey, validateApplyKey, validateXApplyKey
nameKey
Constructor and Description |
---|
MakeSplice() |
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) |
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getReturnType, getSetter, getSourceLocation, isSideEffectFree, match0, match1, match2, match3, match4, matchN, 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 QuoteExp quoteInstance
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)