Package gnu.mapping
Class Procedure4
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure4
-
-
Field Summary
Fields Modifier and Type Field Description static MethodHandleapplyToObject-
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
-
-
Constructor Summary
Constructors Constructor Description Procedure4()Procedure4(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectapply0()Objectapply1(Object arg1)Objectapply2(Object arg1, Object arg2)Objectapply3(Object arg1, Object arg2, Object arg3)abstract Objectapply4(Object arg1, Object arg2, Object arg3, Object arg4)ObjectapplyN(Object[] args)static ObjectapplyToObject(Procedure proc, CallContext ctx)intnumArgs()ReturnminArgs()|(maxArgs<<12).-
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
-
applyToObject
public static final MethodHandle applyToObject
-
-
Constructor Detail
-
Procedure4
public Procedure4()
-
Procedure4
public Procedure4(String name)
-
-
Method Detail
-
numArgs
public int numArgs()
Description copied from class:ProcedureReturnminArgs()|(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.
-
apply4
public abstract Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable
-
applyToObject
public static Object applyToObject(Procedure proc, CallContext ctx) throws Throwable
- Throws:
Throwable
-
-