public class MethodCallerMultiAdapter
extends Object
Multi-adapter for method callers that handles different argument counts and safe/spread-safe variants.
| Modifiers | Name | Description |
|---|---|---|
static int |
MAX_ARGS |
Maximum number of direct (non-N-arg) argument slots; variants above this use the N-arg method. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
call(org.objectweb.asm.MethodVisitor methodVisitor, int numberOfArguments, boolean safe, boolean spreadSafe)Invokes the appropriate method based on argument count and safety flags. |
|
public static MethodCallerMultiAdapter |
newStatic(Class theClass, String baseName, boolean createNArgs, boolean skipSpreadSafeAndSafe)Creates a multi-adapter for static methods with optional safe and spread-safe variants. |
Maximum number of direct (non-N-arg) argument slots; variants above this use the N-arg method.
Invokes the appropriate method based on argument count and safety flags.
methodVisitor - the method visitor to write tonumberOfArguments - a value > 0 describing how many arguments are additionally used for the method callsafe - whether to use the safe variantspreadSafe - whether to use the spread-safe variantCreates a multi-adapter for static methods with optional safe and spread-safe variants.
theClass - the class containing the methodsbaseName - the base method namecreateNArgs - whether to create numbered argument variantsskipSpreadSafeAndSafe - whether to skip safe and spread-safe variants