public class Map extends ProcedureN
noArgscompilerKey, compilerXKey, validateApplyKey, validateXApplyKeynameKey| Constructor and Description |
|---|
Map(boolean collect,
ApplyToArgs applyToArgs,
IsEq isEq) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply2(java.lang.Object arg1,
java.lang.Object arg2) |
java.lang.Object |
applyN(java.lang.Object[] args) |
static void |
forEach1(Procedure proc,
java.lang.Object list)
An optimized single-list version of for-each.
|
static java.lang.Object |
map1(Procedure proc,
java.lang.Object list)
An optimized single-list version of map.
|
int |
numArgs()
Return
minArgs()|(maxArgs<<12). |
apply0, apply1, apply3, apply4apply, 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, toStringgetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic Map(boolean collect,
ApplyToArgs applyToArgs,
IsEq isEq)
public static java.lang.Object map1(Procedure proc, java.lang.Object list) throws java.lang.Throwable
java.lang.Throwablepublic static void forEach1(Procedure proc, java.lang.Object list) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object apply2(java.lang.Object arg1,
java.lang.Object arg2)
throws java.lang.Throwable
apply2 in class ProcedureNjava.lang.Throwablepublic java.lang.Object applyN(java.lang.Object[] args)
throws java.lang.Throwable
applyN in class ProcedureNjava.lang.Throwablepublic int numArgs()
ProcedureminArgs()|(maxArgs<<12).
We use a single virtual function to reduce the number of methods
in the system, as well as the number of virtual method table entries.
We shift by 12 so the number can normally be represented using a
sipush instruction, without requiring a constant pool entry.