| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| public static final InvokerUtils. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static MethodHandle | Returns: the bound MethodHandle, or null if the providedmethodHandle was null.the method handle to bind to methodHandle, Object... the list of optional objects to bind to. objs)Bind optional arguments to provided method handle |
| public static MethodHandle | mutatedInvoker(MethodHandles.
the lookup,java. instance to use.the target class for invocations of the resulting MethodHandle (also known as parameter 0) targetClass, Method the method to invoke method, InvokerUtils.the calling arguments. This is the array of arguments that will always be passed into the returned MethodHandle.
They will be present in the callingArgsMethodHandle#type() in the order specified in this array.Build a MethodHandle that can call the method with the calling args provided. |
| public static MethodHandle | Returns: the MethodHandle for this set of CallingArgsthe lookup,java. instance to use.the target class for invocations of the resulting MethodHandle (also known as parameter 0) targetClass, Method the method to invoke method, InvokerUtils.the mechanism to identify parameters in method paramIdentifier,the array of named variables. This is the array of named arguments that the target method might have.
The resulting MethodHandle will include all of these namedVariables as the first non-object arguments in the namedVariables, InvokerUtils.MethodType
found on the returned MethodHandle#type()the calling arguments. This is the array of arguments that will always be passed into the returned MethodHandle.
They will be present in the callingArgsMethodHandle#type() in the order specified in this array.Create a MethodHandle that performs the following layers
|
| private static MethodHandle | mutatedInvoker(MethodHandles.
|
| public static MethodHandle | Returns: the MethodHandle for this set of CallingArgs, or null if not possible to create MethodHandle with CallingArgs to provided methodthe lookup,java. instance to use.the target class for invocations of the resulting MethodHandle (also known as parameter 0) targetClass, Method the method to invoke method, InvokerUtils.the mechanism to identify parameters in method paramIdentifier,the array of named variables. This is the array of named arguments that the target method might have.
The resulting MethodHandle will include all of these namedVariables as the first non-object arguments in the namedVariables, InvokerUtils.MethodType
found on the returned MethodHandle#type()the calling arguments. This is the array of arguments that will always be passed into the returned MethodHandle.
They will be present in the callingArgsMethodHandle#type() in the order specified in this array.Create an optional MethodHandle that performs the following layers. |
| public static MethodHandle | optionalMutatedInvoker(MethodHandles.
|
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| PARAM_IDENTITY | back to summary |
|---|---|
| public static final InvokerUtils. | |
| InvokerUtils | back to summary |
|---|---|
| public InvokerUtils() | |
| appendTypeList | back to summary |
|---|---|
| private static void appendTypeList(StringBuilder str, InvokerUtils. | |
| bindTo | back to summary |
|---|---|
| public static MethodHandle bindTo(MethodHandle methodHandle, Object... objs) Bind optional arguments to provided method handle
| |
| mutatedInvoker | back to summary |
|---|---|
| public static MethodHandle mutatedInvoker(MethodHandles. Build a MethodHandle that can call the method with the calling args provided. Might need to drop calling args and/or reorder the calling args to fit the actual method being called.
| |
| mutatedInvoker | back to summary |
|---|---|
| public static MethodHandle mutatedInvoker(MethodHandles. Create a MethodHandle that performs the following layers
The returned
| |
| mutatedInvoker | back to summary |
|---|---|
| private static MethodHandle mutatedInvoker(MethodHandles. | |
| optionalMutatedInvoker | back to summary |
|---|---|
| public static MethodHandle optionalMutatedInvoker(MethodHandles. Create an optional MethodHandle that performs the following layers.
| |
| optionalMutatedInvoker | back to summary |
|---|---|
| public static MethodHandle optionalMutatedInvoker(MethodHandles. | |
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private boolean | |
| private String | |
| private boolean | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InvokerUtils. | |
| public Class | |
| public String | |
| public Class | |
| public boolean | |
| public boolean | |
| public InvokerUtils. |
| convertedType | back to summary |
|---|---|
| private Class<?> convertedType | |
| convertible | back to summary |
|---|---|
| private boolean convertible | |
| name | back to summary |
|---|---|
| private String name | |
| required | back to summary |
|---|---|
| private boolean required | |
| type | back to summary |
|---|---|
| private final Class<?> type | |
| Arg | back to summary |
|---|---|
| public Arg(Class<?> type) | |
| Arg | back to summary |
|---|---|
| public Arg(Class<?> type, String name) | |
| convertible | back to summary |
|---|---|
| public InvokerUtils. | |
| getConvertedType | back to summary |
|---|---|
| public Class | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getType | back to summary |
|---|---|
| public Class | |
| isRequired | back to summary |
|---|---|
| public boolean isRequired() | |
| matches | back to summary |
|---|---|
| public boolean matches(InvokerUtils. | |
| required | back to summary |
|---|---|
| public InvokerUtils. | |
| Modifier and Type | Method and Description |
|---|---|
| public InvokerUtils. |
| getParamArg | back to summary |
|---|---|
| public InvokerUtils. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public InvokerUtils. | getParamArg(Method method, Class<?> paramType, int idx)
Implements org.
|
| ParamIdentity | back to summary |
|---|---|
| private ParamIdentity() | |
| getParamArg | back to summary |
|---|---|
| public InvokerUtils. Implements org.
| |