public class io.dropwizard.util.Generics
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.util.Generics
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lio/dropwizard/util/Generics;
public static java.lang.Class<?> getTypeParameter(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljava/lang/Object;
invokestatic io.dropwizard.util.Generics.getTypeParameter:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 klass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
klass
public static <T> java.lang.Class<T> getTypeParameter(java.lang.Class<?>, java.lang.Class<? super T>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=12, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.reflect.Type
astore 2
start local 2 1: goto 3
2: StackMap locals: java.lang.reflect.Type
StackMap stack:
aload 2
checkcast java.lang.Class
invokevirtual java.lang.Class.getGenericSuperclass:()Ljava/lang/reflect/Type;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
instanceof java.lang.Class
ifne 2
4: aload 2
instanceof java.lang.reflect.ParameterizedType
ifeq 29
5: aload 2
checkcast java.lang.reflect.ParameterizedType
invokeinterface java.lang.reflect.ParameterizedType.getActualTypeArguments:()[Ljava/lang/reflect/Type;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 28
StackMap locals: java.lang.Class java.lang.Class java.lang.reflect.Type top int int java.lang.reflect.Type[]
StackMap stack:
6: aload 6
iload 4
aaload
astore 3
start local 3 7: aload 3
instanceof java.lang.Class
ifeq 11
8: aload 1
aload 3
invokestatic io.dropwizard.util.Generics.determineClass:(Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/Class;
astore 7
start local 7 9: aload 7
ifnull 27
10: aload 7
areturn
end local 7 11: StackMap locals: java.lang.Class java.lang.Class java.lang.reflect.Type java.lang.reflect.Type int int java.lang.reflect.Type[]
StackMap stack:
aload 3
instanceof java.lang.reflect.TypeVariable
ifeq 21
12: aload 3
checkcast java.lang.reflect.TypeVariable
invokeinterface java.lang.reflect.TypeVariable.getBounds:()[Ljava/lang/reflect/Type;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 19
StackMap locals: java.lang.Class java.lang.Class java.lang.reflect.Type java.lang.reflect.Type int int java.lang.reflect.Type[] top int int java.lang.reflect.Type[]
StackMap stack:
13: aload 10
iload 8
aaload
astore 7
start local 7 14: aload 7
instanceof java.lang.Class
ifeq 18
15: aload 1
aload 7
invokestatic io.dropwizard.util.Generics.determineClass:(Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/Class;
astore 11
start local 11 16: aload 11
ifnull 18
17: aload 11
areturn
end local 11 end local 7 18: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
19: iload 8
iload 9
if_icmplt 13
20: goto 27
StackMap locals: java.lang.Class java.lang.Class java.lang.reflect.Type java.lang.reflect.Type int int java.lang.reflect.Type[]
StackMap stack:
21: aload 3
instanceof java.lang.reflect.ParameterizedType
ifeq 27
22: aload 3
checkcast java.lang.reflect.ParameterizedType
invokeinterface java.lang.reflect.ParameterizedType.getRawType:()Ljava/lang/reflect/Type;
astore 7
start local 7 23: aload 7
instanceof java.lang.Class
ifeq 27
24: aload 1
aload 7
invokestatic io.dropwizard.util.Generics.determineClass:(Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/Class;
astore 8
start local 8 25: aload 8
ifnull 27
26: aload 8
areturn
end local 8 end local 7 end local 3 27: StackMap locals: java.lang.Class java.lang.Class java.lang.reflect.Type top int int java.lang.reflect.Type[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
28: iload 4
iload 5
if_icmplt 6
29: StackMap locals: java.lang.Class java.lang.Class java.lang.reflect.Type
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Cannot figure out type parameterization for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 klass Ljava/lang/Class<*>;
0 30 1 bound Ljava/lang/Class<-TT;>;
1 30 2 t Ljava/lang/reflect/Type;
7 27 3 param Ljava/lang/reflect/Type;
9 11 7 cls Ljava/lang/Class<TT;>;
14 18 7 paramBound Ljava/lang/reflect/Type;
16 18 11 cls Ljava/lang/Class<TT;>;
23 27 7 rawType Ljava/lang/reflect/Type;
25 27 8 cls Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<*>;Ljava/lang/Class<-TT;>;)Ljava/lang/Class<TT;>;
MethodParameters:
Name Flags
klass
bound
private static <T> java.lang.Class<T> determineClass(java.lang.Class<? super T>, java.lang.reflect.Type);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.Class
ifeq 4
1: aload 1
checkcast java.lang.Class
astore 2
start local 2 2: aload 0
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 4
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 bound Ljava/lang/Class<-TT;>;
0 5 1 candidate Ljava/lang/reflect/Type;
2 4 2 cls Ljava/lang/Class<*>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<-TT;>;Ljava/lang/reflect/Type;)Ljava/lang/Class<TT;>;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nullable()
MethodParameters:
Name Flags
bound
candidate
}
SourceFile: "Generics.java"