public class Map extends ProcedureN
applyToObject, noArgs
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
nameKey
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,
LList list)
An optimized single-list version of for-each.
|
static void |
forEach1(Procedure proc,
java.lang.Object list)
An optimized single-list version of for-each.
|
static java.lang.Object |
map1(Procedure proc,
LList list)
An optimized single-list version of map.
|
static java.lang.Object |
map1(Procedure proc,
java.lang.Object list) |
int |
numArgs()
Return
minArgs()|(maxArgs<<12) . |
applyToObject
apply0, apply1, apply3, apply4, 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 Map(boolean collect, ApplyToArgs applyToArgs, IsEq isEq)
public static java.lang.Object map1(Procedure proc, LList list) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.Object map1(Procedure proc, java.lang.Object list) throws java.lang.Throwable
java.lang.Throwable
public static void forEach1(Procedure proc, LList list) throws java.lang.Throwable
java.lang.Throwable
public static void forEach1(Procedure proc, java.lang.Object list) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object apply2(java.lang.Object arg1, java.lang.Object arg2) throws java.lang.Throwable
public java.lang.Object applyN(java.lang.Object[] args) throws java.lang.Throwable
public int numArgs()
Procedure
minArgs()|(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.