class org.jdbi.v3.sqlobject.DefaultMethodHandlerFactory implements org.jdbi.v3.sqlobject.HandlerFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jdbi.v3.sqlobject.DefaultMethodHandlerFactory
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/DefaultMethodHandlerFactory;
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=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.reflect.Method.isDefault:()Z
ifne 2
1: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.reflect.Method.getAnnotations:()[Ljava/lang/annotation/Annotation;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
3: invokedynamic apply()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;
java/lang/annotation/Annotation.annotationType()Ljava/lang/Class; (9 itf)
(Ljava/lang/annotation/Annotation;)Ljava/lang/Class;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: invokedynamic test()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/DefaultMethodHandlerFactory.lambda$1(Ljava/lang/Class;)Z (6)
(Ljava/lang/Class;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
6: aload 1
aload 2
invokedynamic accept(Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/util/function/Consumer;
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;)V
org/jdbi/v3/sqlobject/DefaultMethodHandlerFactory.lambda$2(Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/Class;)V (6)
(Ljava/lang/Class;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
7: aload 2
invokevirtual java.lang.reflect.Method.getParameters:()[Ljava/lang/reflect/Parameter;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 15
StackMap locals: org.jdbi.v3.sqlobject.DefaultMethodHandlerFactory java.lang.Class java.lang.reflect.Method top int int java.lang.reflect.Parameter[]
StackMap stack:
8: aload 6
iload 4
aaload
astore 3
start local 3 9: aload 3
invokevirtual java.lang.reflect.Parameter.getAnnotations:()[Ljava/lang/annotation/Annotation;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
10: invokedynamic apply()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;
java/lang/annotation/Annotation.annotationType()Ljava/lang/Class; (9 itf)
(Ljava/lang/annotation/Annotation;)Ljava/lang/Class;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
11: invokedynamic test()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/DefaultMethodHandlerFactory.lambda$4(Ljava/lang/Class;)Z (6)
(Ljava/lang/Class;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
12: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
13: aload 1
aload 2
aload 3
invokedynamic accept(Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/reflect/Parameter;)Ljava/util/function/Consumer;
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;)V
org/jdbi/v3/sqlobject/DefaultMethodHandlerFactory.lambda$5(Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/reflect/Parameter;Ljava/lang/Class;)V (6)
(Ljava/lang/Class;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
end local 3 14: iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
iload 5
if_icmplt 8
16: new org.jdbi.v3.sqlobject.DefaultMethodHandler
dup
aload 2
invokespecial org.jdbi.v3.sqlobject.DefaultMethodHandler.<init>:(Ljava/lang/reflect/Method;)V
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/jdbi/v3/sqlobject/DefaultMethodHandlerFactory;
0 17 1 sqlObjectType Ljava/lang/Class<*>;
0 17 2 method Ljava/lang/reflect/Method;
9 14 3 parameter Ljava/lang/reflect/Parameter;
Signature: (Ljava/lang/Class<*>;Ljava/lang/reflect/Method;)Ljava/util/Optional<Lorg/jdbi/v3/sqlobject/Handler;>;
MethodParameters:
Name Flags
sqlObjectType
method
private static boolean lambda$1(java.lang.Class);
descriptor: (Ljava/lang/Class;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Lorg/jdbi/v3/sqlobject/customizer/SqlStatementCustomizingAnnotation;
invokevirtual java.lang.Class.isAnnotationPresent:(Ljava/lang/Class;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 type Ljava/lang/Class<Ljava/lang/annotation/Annotation;>;
private static void lambda$2(java.lang.Class, java.lang.reflect.Method, java.lang.Class);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/Class;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=3, args_size=3
start local 2 0: new java.lang.IllegalStateException
dup
1: ldc "Default method %s.%s has @%s annotation. Statement customizing annotations don't work on default methods."
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
3: aload 1
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
aastore
dup
iconst_2
4: aload 2
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 6 2 type Ljava/lang/Class<Ljava/lang/annotation/Annotation;>;
private static boolean lambda$4(java.lang.Class);
descriptor: (Ljava/lang/Class;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Lorg/jdbi/v3/sqlobject/customizer/SqlStatementCustomizingAnnotation;
invokevirtual java.lang.Class.isAnnotationPresent:(Ljava/lang/Class;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 type Ljava/lang/Class<Ljava/lang/annotation/Annotation;>;
private static void lambda$5(java.lang.Class, java.lang.reflect.Method, java.lang.reflect.Parameter, java.lang.Class);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/reflect/Parameter;Ljava/lang/Class;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=4, args_size=4
start local 3 0: new java.lang.IllegalStateException
dup
1: ldc "Default method %s.%s parameter %s has @%s annotation. Statement customizing annotations don't work on default methods."
iconst_4
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
3: aload 1
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
aastore
dup
iconst_2
4: aload 2
invokevirtual java.lang.reflect.Parameter.getName:()Ljava/lang/String;
aastore
dup
iconst_3
5: aload 3
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 LocalVariableTable:
Start End Slot Name Signature
0 7 3 type Ljava/lang/Class<Ljava/lang/annotation/Annotation;>;
}
SourceFile: "DefaultMethodHandlerFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles