public class PropertyMethodFinder extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
callerClass |
protected MethodInvocation |
invocation |
protected java.lang.invoke.MethodHandles.Lookup |
lookup |
Constructor and Description |
---|
PropertyMethodFinder(MethodInvocation invocation,
java.lang.invoke.MethodHandles.Lookup lookup) |
Modifier and Type | Method and Description |
---|---|
java.lang.invoke.MethodHandle |
find() |
protected int[] |
getArgumentsOrder(java.lang.reflect.Method method,
java.util.List<java.lang.String> parameterNames,
java.lang.String[] argumentNames) |
java.lang.invoke.MethodHandle |
reorderArguments(java.lang.reflect.Method method,
java.lang.invoke.MethodHandle handle) |
protected java.util.Optional<java.lang.invoke.MethodHandle> |
toMethodHandle(java.lang.reflect.Method method) |
protected final MethodInvocation invocation
protected final java.lang.invoke.MethodHandles.Lookup lookup
protected final java.lang.Class<?> callerClass
public PropertyMethodFinder(MethodInvocation invocation, java.lang.invoke.MethodHandles.Lookup lookup)
public java.lang.invoke.MethodHandle find()
protected int[] getArgumentsOrder(java.lang.reflect.Method method, java.util.List<java.lang.String> parameterNames, java.lang.String[] argumentNames)
public java.lang.invoke.MethodHandle reorderArguments(java.lang.reflect.Method method, java.lang.invoke.MethodHandle handle)
protected java.util.Optional<java.lang.invoke.MethodHandle> toMethodHandle(java.lang.reflect.Method method)