class org.jdbi.v3.sqlobject.BridgeMethodHandlerFactory implements org.jdbi.v3.sqlobject.HandlerFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jdbi.v3.sqlobject.BridgeMethodHandlerFactory
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jdbi/v3/sqlobject/BridgeMethodHandlerFactory;
public java.util.Optional<org.jdbi.v3.sqlobject.Handler> buildHandler(java.lang.Class<?>, java.lang.reflect.Method);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.reflect.Method.isBridge:()Z
ifne 2
1: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getMethods:()[Ljava/lang/reflect/Method;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
3: aload 2
invokedynamic test(Ljava/lang/reflect/Method;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/jdbi/v3/sqlobject/BridgeMethodHandlerFactory.lambda$0(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)Z (6)
(Ljava/lang/reflect/Method;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: aload 2
invokedynamic test(Ljava/lang/reflect/Method;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/jdbi/v3/sqlobject/BridgeMethodHandlerFactory.lambda$1(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)Z (6)
(Ljava/lang/reflect/Method;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: aload 1
invokedynamic apply(Ljava/lang/Class;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/jdbi/v3/sqlobject/BridgeMethodHandlerFactory.lambda$3(Ljava/lang/Class;Ljava/lang/reflect/Method;)Lorg/jdbi/v3/sqlobject/Handler; (6)
(Ljava/lang/reflect/Method;)Lorg/jdbi/v3/sqlobject/Handler;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
6: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jdbi/v3/sqlobject/BridgeMethodHandlerFactory;
0 8 1 sqlObjectType Ljava/lang/Class<*>;
0 8 2 method Ljava/lang/reflect/Method;
Signature: (Ljava/lang/Class<*>;Ljava/lang/reflect/Method;)Ljava/util/Optional<Lorg/jdbi/v3/sqlobject/Handler;>;
MethodParameters:
Name Flags
sqlObjectType
method
private static java.lang.invoke.MethodHandle unreflect(java.lang.Class<?>, java.lang.reflect.Method);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/lang/invoke/MethodHandle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.jdbi.v3.sqlobject.DefaultMethodHandler.lookupFor:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandles$Lookup;
aload 1
invokevirtual java.lang.invoke.MethodHandles$Lookup.unreflect:(Ljava/lang/reflect/Method;)Ljava/lang/invoke/MethodHandle;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 2
start local 2 3: new org.jdbi.v3.sqlobject.UnableToCreateSqlObjectException
dup
new java.lang.StringBuilder
dup
ldc "Bridge handler couldn't unreflect "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial org.jdbi.v3.sqlobject.UnableToCreateSqlObjectException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 sqlObjectType Ljava/lang/Class<*>;
0 4 1 m Ljava/lang/reflect/Method;
3 4 2 e Ljava/lang/IllegalAccessException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalAccessException
Signature: (Ljava/lang/Class<*>;Ljava/lang/reflect/Method;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
sqlObjectType
m
private static boolean lambda$0(java.lang.reflect.Method, java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual java.lang.reflect.Method.isBridge:()Z
ifne 3
1: aload 1
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
aload 0
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
2: aload 1
invokevirtual java.lang.reflect.Method.getParameterCount:()I
aload 0
invokevirtual java.lang.reflect.Method.getParameterCount:()I
if_icmpne 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 candidate Ljava/lang/reflect/Method;
private static boolean lambda$1(java.lang.reflect.Method, java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=2
start local 1 0: aload 1
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
astore 2
start local 2 1: aload 0
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
astore 3
start local 3 2: iconst_0
aload 0
invokevirtual java.lang.reflect.Method.getParameterCount:()I
invokestatic java.util.stream.IntStream.range:(II)Ljava/util/stream/IntStream;
3: aload 3
aload 2
invokedynamic test([Ljava/lang/Class;[Ljava/lang/Class;)Ljava/util/function/IntPredicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(I)Z
org/jdbi/v3/sqlobject/BridgeMethodHandlerFactory.lambda$2([Ljava/lang/Class;[Ljava/lang/Class;I)Z (6)
(I)Z
invokeinterface java.util.stream.IntStream.allMatch:(Ljava/util/function/IntPredicate;)Z
4: ireturn
end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 candidate Ljava/lang/reflect/Method;
1 5 2 candidateParamTypes [Ljava/lang/Class;
2 5 3 methodParamTypes [Ljava/lang/Class;
private static org.jdbi.v3.sqlobject.Handler lambda$3(java.lang.Class, java.lang.reflect.Method);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Method;)Lorg/jdbi/v3/sqlobject/Handler;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
start local 1 0: aload 0
aload 1
invokestatic org.jdbi.v3.sqlobject.BridgeMethodHandlerFactory.unreflect:(Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/lang/invoke/MethodHandle;
astore 2
start local 2 1: aload 2
invokedynamic invoke(Ljava/lang/invoke/MethodHandle;)Lorg/jdbi/v3/sqlobject/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;[Ljava/lang/Object;Lorg/jdbi/v3/core/extension/HandleSupplier;)Ljava/lang/Object;
org/jdbi/v3/sqlobject/BridgeMethodHandlerFactory.lambda$4(Ljava/lang/invoke/MethodHandle;Ljava/lang/Object;[Ljava/lang/Object;Lorg/jdbi/v3/core/extension/HandleSupplier;)Ljava/lang/Object; (6)
(Ljava/lang/Object;[Ljava/lang/Object;Lorg/jdbi/v3/core/extension/HandleSupplier;)Ljava/lang/Object;
areturn
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 m Ljava/lang/reflect/Method;
1 2 2 mh Ljava/lang/invoke/MethodHandle;
private static boolean lambda$2(java.lang.Class[], java.lang.Class[], int);
descriptor: ([Ljava/lang/Class;[Ljava/lang/Class;I)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 0
iload 2
aaload
aload 1
iload 2
aaload
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 i I
private static java.lang.Object lambda$4(java.lang.invoke.MethodHandle, java.lang.Object, java.lang.Object[], org.jdbi.v3.core.extension.HandleSupplier);
descriptor: (Ljava/lang/invoke/MethodHandle;Ljava/lang/Object;[Ljava/lang/Object;Lorg/jdbi/v3/core/extension/HandleSupplier;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=5, args_size=4
start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual java.lang.invoke.MethodHandle.bindTo:(Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
astore 4
aload 4
invokedynamic apply(Ljava/lang/invoke/MethodHandle;)Lorg/jdbi/v3/core/internal/exceptions/CheckedFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/jdbi/v3/sqlobject/BridgeMethodHandlerFactory.lambda$6(Ljava/lang/invoke/MethodHandle;[Ljava/lang/Object;)Ljava/lang/Object; (6)
([Ljava/lang/Object;)Ljava/lang/Object;
invokestatic org.jdbi.v3.core.internal.exceptions.Unchecked.function:(Lorg/jdbi/v3/core/internal/exceptions/CheckedFunction;)Ljava/util/function/Function;
aload 2
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 target Ljava/lang/Object;
0 1 2 args [Ljava/lang/Object;
0 1 3 handle Lorg/jdbi/v3/core/extension/HandleSupplier;
Exceptions:
throws java.lang.Exception
private static java.lang.Object lambda$6(java.lang.invoke.MethodHandle, java.lang.Object[]);
descriptor: (Ljava/lang/invoke/MethodHandle;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual java.lang.invoke.MethodHandle.invokeWithArguments:([Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 arg0 [Ljava/lang/Object;
Exceptions:
throws java.lang.Throwable
}
SourceFile: "BridgeMethodHandlerFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles