final class jdk.dynalink.TypeConverterFactory
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.dynalink.TypeConverterFactory
super_class: java.lang.Object
{
private static final java.security.AccessControlContext GET_CLASS_LOADER_CONTEXT;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final jdk.dynalink.linker.GuardingTypeConverterFactory[] factories;
descriptor: [Ljdk/dynalink/linker/GuardingTypeConverterFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.dynalink.linker.ConversionComparator[] comparators;
descriptor: [Ljdk/dynalink/linker/ConversionComparator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.dynalink.linker.MethodTypeConversionStrategy autoConversionStrategy;
descriptor: Ljdk/dynalink/linker/MethodTypeConversionStrategy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassValue<jdk.dynalink.ClassMap<java.lang.invoke.MethodHandle>> converterMap;
descriptor: Ljava/lang/ClassValue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ClassValue<Ljdk/dynalink/ClassMap<Ljava/lang/invoke/MethodHandle;>;>;
private final java.lang.ClassValue<jdk.dynalink.ClassMap<java.lang.invoke.MethodHandle>> converterIdentityMap;
descriptor: Ljava/lang/ClassValue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ClassValue<Ljdk/dynalink/ClassMap<Ljava/lang/invoke/MethodHandle;>;>;
private final java.lang.ClassValue<jdk.dynalink.ClassMap<java.lang.Boolean>> canConvert;
descriptor: Ljava/lang/ClassValue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ClassValue<Ljdk/dynalink/ClassMap<Ljava/lang/Boolean;>;>;
static final java.lang.invoke.MethodHandle IDENTITY_CONVERSION;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_1
anewarray java.lang.String
dup
iconst_0
1: ldc "getClassLoader"
aastore
invokestatic jdk.dynalink.internal.AccessControlContextFactory.createAccessControlContext:([Ljava/lang/String;)Ljava/security/AccessControlContext;
putstatic jdk.dynalink.TypeConverterFactory.GET_CLASS_LOADER_CONTEXT:Ljava/security/AccessControlContext;
2: ldc Ljava/lang/Object;
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.dynalink.TypeConverterFactory.IDENTITY_CONVERSION:Ljava/lang/invoke/MethodHandle;
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.ClassLoader getClassLoader(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/ClassLoader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.dynalink.TypeConverterFactory$4
dup
aload 0
invokespecial jdk.dynalink.TypeConverterFactory$4.<init>:(Ljava/lang/Class;)V
1: getstatic jdk.dynalink.TypeConverterFactory.GET_CLASS_LOADER_CONTEXT:Ljava/security/AccessControlContext;
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
clazz final
void <init>(java.lang.Iterable<? extends jdk.dynalink.linker.GuardingTypeConverterFactory>, jdk.dynalink.linker.MethodTypeConversionStrategy);
descriptor: (Ljava/lang/Iterable;Ljdk/dynalink/linker/MethodTypeConversionStrategy;)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.dynalink.TypeConverterFactory$1
dup
aload 0
invokespecial jdk.dynalink.TypeConverterFactory$1.<init>:(Ljdk/dynalink/TypeConverterFactory;)V
putfield jdk.dynalink.TypeConverterFactory.converterMap:Ljava/lang/ClassValue;
2: aload 0
new jdk.dynalink.TypeConverterFactory$2
dup
aload 0
invokespecial jdk.dynalink.TypeConverterFactory$2.<init>:(Ljdk/dynalink/TypeConverterFactory;)V
putfield jdk.dynalink.TypeConverterFactory.converterIdentityMap:Ljava/lang/ClassValue;
3: aload 0
new jdk.dynalink.TypeConverterFactory$3
dup
aload 0
invokespecial jdk.dynalink.TypeConverterFactory$3.<init>:(Ljdk/dynalink/TypeConverterFactory;)V
putfield jdk.dynalink.TypeConverterFactory.canConvert:Ljava/lang/ClassValue;
4: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 3
start local 3 5: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 4
start local 4 6: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: jdk.dynalink.TypeConverterFactory java.lang.Iterable jdk.dynalink.linker.MethodTypeConversionStrategy java.util.List java.util.List top java.util.Iterator
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.dynalink.linker.GuardingTypeConverterFactory
astore 5
start local 5 8: aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: aload 5
instanceof jdk.dynalink.linker.ConversionComparator
ifeq 11
10: aload 4
aload 5
checkcast jdk.dynalink.linker.ConversionComparator
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 11: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
12: aload 0
aload 3
iconst_0
anewarray jdk.dynalink.linker.GuardingTypeConverterFactory
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast jdk.dynalink.linker.GuardingTypeConverterFactory[]
putfield jdk.dynalink.TypeConverterFactory.factories:[Ljdk/dynalink/linker/GuardingTypeConverterFactory;
13: aload 0
aload 4
iconst_0
anewarray jdk.dynalink.linker.ConversionComparator
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast jdk.dynalink.linker.ConversionComparator[]
putfield jdk.dynalink.TypeConverterFactory.comparators:[Ljdk/dynalink/linker/ConversionComparator;
14: aload 0
aload 2
putfield jdk.dynalink.TypeConverterFactory.autoConversionStrategy:Ljdk/dynalink/linker/MethodTypeConversionStrategy;
15: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/dynalink/TypeConverterFactory;
0 16 1 factories Ljava/lang/Iterable<+Ljdk/dynalink/linker/GuardingTypeConverterFactory;>;
0 16 2 autoConversionStrategy Ljdk/dynalink/linker/MethodTypeConversionStrategy;
5 16 3 l Ljava/util/List<Ljdk/dynalink/linker/GuardingTypeConverterFactory;>;
6 16 4 c Ljava/util/List<Ljdk/dynalink/linker/ConversionComparator;>;
8 11 5 factory Ljdk/dynalink/linker/GuardingTypeConverterFactory;
Signature: (Ljava/lang/Iterable<+Ljdk/dynalink/linker/GuardingTypeConverterFactory;>;Ljdk/dynalink/linker/MethodTypeConversionStrategy;)V
MethodParameters:
Name Flags
factories final
autoConversionStrategy final
java.lang.invoke.MethodHandle asType(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType);
descriptor: (Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
flags: (0x0000)
Code:
stack=5, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 1
astore 3
start local 3 1: aload 3
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
astore 4
start local 4 2: aload 4
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
istore 5
start local 5 3: iload 5
aload 2
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
if_icmpeq 5
4: new java.lang.invoke.WrongMethodTypeException
dup
new java.lang.StringBuilder
dup
ldc "Parameter counts differ: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " vs. "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.invoke.WrongMethodTypeException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.invoke.MethodHandle java.lang.invoke.MethodType int
StackMap stack:
iconst_0
istore 6
start local 6 6: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 7
start local 7 7: iconst_0
istore 8
start local 8 8: goto 22
9: StackMap locals: int java.util.List int
StackMap stack:
aload 2
iload 8
invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
astore 9
start local 9 10: aload 4
iload 8
invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
astore 10
start local 10 11: aload 9
aload 10
invokestatic jdk.dynalink.TypeConverterFactory.canAutoConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 14
12: aload 3
iload 6
aload 7
invokestatic jdk.dynalink.TypeConverterFactory.applyConverters:(Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;
astore 3
13: goto 21
14: StackMap locals: java.lang.Class java.lang.Class
StackMap stack:
aload 0
aload 9
aload 10
invokevirtual jdk.dynalink.TypeConverterFactory.getTypeConverterNull:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 11
start local 11 15: aload 11
ifnull 20
16: aload 7
invokeinterface java.util.List.isEmpty:()Z
ifeq 18
17: iload 8
istore 6
18: StackMap locals: java.lang.invoke.MethodHandle
StackMap stack:
aload 7
aload 11
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
19: goto 21
20: StackMap locals:
StackMap stack:
aload 3
iload 6
aload 7
invokestatic jdk.dynalink.TypeConverterFactory.applyConverters:(Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;
astore 3
end local 11 end local 10 end local 9 21: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
22: iload 8
iload 5
if_icmplt 9
end local 8 23: aload 3
iload 6
aload 7
invokestatic jdk.dynalink.TypeConverterFactory.applyConverters:(Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;
astore 3
24: aload 2
invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
astore 8
start local 8 25: aload 4
invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
astore 9
start local 9 26: aload 8
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpeq 31
aload 9
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpeq 31
27: aload 9
aload 8
invokestatic jdk.dynalink.TypeConverterFactory.canAutoConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 31
28: aload 0
aload 9
aload 8
invokevirtual jdk.dynalink.TypeConverterFactory.getTypeConverterNull:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 10
start local 10 29: aload 10
ifnull 31
30: aload 3
aload 10
invokestatic java.lang.invoke.MethodHandles.filterReturnValue:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
astore 3
end local 10 31: StackMap locals: jdk.dynalink.TypeConverterFactory java.lang.invoke.MethodHandle java.lang.invoke.MethodType java.lang.invoke.MethodHandle java.lang.invoke.MethodType int int java.util.List java.lang.Class java.lang.Class
StackMap stack:
aload 0
getfield jdk.dynalink.TypeConverterFactory.autoConversionStrategy:Ljdk/dynalink/linker/MethodTypeConversionStrategy;
ifnull 32
aload 0
getfield jdk.dynalink.TypeConverterFactory.autoConversionStrategy:Ljdk/dynalink/linker/MethodTypeConversionStrategy;
aload 3
aload 2
invokeinterface jdk.dynalink.linker.MethodTypeConversionStrategy.asType:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
goto 33
StackMap locals:
StackMap stack:
32: aload 3
33: StackMap locals:
StackMap stack: java.lang.invoke.MethodHandle
astore 10
start local 10 34: aload 10
aload 2
invokevirtual java.lang.invoke.MethodHandle.asType:(Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Ljdk/dynalink/TypeConverterFactory;
0 35 1 handle Ljava/lang/invoke/MethodHandle;
0 35 2 fromType Ljava/lang/invoke/MethodType;
1 35 3 newHandle Ljava/lang/invoke/MethodHandle;
2 35 4 toType Ljava/lang/invoke/MethodType;
3 35 5 l I
6 35 6 pos I
7 35 7 converters Ljava/util/List<Ljava/lang/invoke/MethodHandle;>;
8 23 8 i I
10 21 9 fromParamType Ljava/lang/Class<*>;
11 21 10 toParamType Ljava/lang/Class<*>;
15 21 11 converter Ljava/lang/invoke/MethodHandle;
25 35 8 fromRetType Ljava/lang/Class<*>;
26 35 9 toRetType Ljava/lang/Class<*>;
29 31 10 converter Ljava/lang/invoke/MethodHandle;
34 35 10 autoConvertedHandle Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
handle final
fromType final
private static java.lang.invoke.MethodHandle applyConverters(java.lang.invoke.MethodHandle, int, java.util.List<java.lang.invoke.MethodHandle>);
descriptor: (Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
iconst_0
anewarray java.lang.invoke.MethodHandle
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.invoke.MethodHandle[]
invokestatic java.lang.invoke.MethodHandles.filterArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
3: astore 3
start local 3 4: aload 2
invokeinterface java.util.List.clear:()V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 handle Ljava/lang/invoke/MethodHandle;
0 6 1 pos I
0 6 2 converters Ljava/util/List<Ljava/lang/invoke/MethodHandle;>;
4 6 3 newHandle Ljava/lang/invoke/MethodHandle;
Signature: (Ljava/lang/invoke/MethodHandle;ILjava/util/List<Ljava/lang/invoke/MethodHandle;>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
handle final
pos final
converters final
boolean canConvert(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic jdk.dynalink.TypeConverterFactory.canAutoConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 1
aload 0
getfield jdk.dynalink.TypeConverterFactory.canConvert:Ljava/lang/ClassValue;
aload 1
invokevirtual java.lang.ClassValue.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast jdk.dynalink.ClassMap
aload 2
invokevirtual jdk.dynalink.ClassMap.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/dynalink/TypeConverterFactory;
0 2 1 from Ljava/lang/Class<*>;
0 2 2 to Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
from final
to final
jdk.dynalink.linker.ConversionComparator$Comparison compareConversion(java.lang.Class<?>, java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljdk/dynalink/linker/ConversionComparator$Comparison;
flags: (0x0000)
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.dynalink.TypeConverterFactory.comparators:[Ljdk/dynalink/linker/ConversionComparator;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 6
StackMap locals: jdk.dynalink.TypeConverterFactory java.lang.Class java.lang.Class java.lang.Class top int int jdk.dynalink.linker.ConversionComparator[]
StackMap stack:
1: aload 7
iload 5
aaload
astore 4
start local 4 2: aload 4
aload 1
aload 2
aload 3
invokeinterface jdk.dynalink.linker.ConversionComparator.compareConversion:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljdk/dynalink/linker/ConversionComparator$Comparison;
astore 8
start local 8 3: aload 8
getstatic jdk.dynalink.linker.ConversionComparator$Comparison.INDETERMINATE:Ljdk/dynalink/linker/ConversionComparator$Comparison;
if_acmpeq 5
4: aload 8
areturn
end local 8 end local 4 5: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
6: iload 5
iload 6
if_icmplt 1
7: aload 1
aload 2
invokestatic jdk.dynalink.linker.support.TypeUtilities.isMethodInvocationConvertible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 10
8: aload 1
aload 3
invokestatic jdk.dynalink.linker.support.TypeUtilities.isMethodInvocationConvertible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 12
9: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
10: StackMap locals: jdk.dynalink.TypeConverterFactory java.lang.Class java.lang.Class java.lang.Class
StackMap stack:
aload 1
aload 3
invokestatic jdk.dynalink.linker.support.TypeUtilities.isMethodInvocationConvertible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 12
11: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
12: StackMap locals:
StackMap stack:
getstatic jdk.dynalink.linker.ConversionComparator$Comparison.INDETERMINATE:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/dynalink/TypeConverterFactory;
0 13 1 sourceType Ljava/lang/Class<*>;
0 13 2 targetType1 Ljava/lang/Class<*>;
0 13 3 targetType2 Ljava/lang/Class<*>;
2 5 4 comparator Ljdk/dynalink/linker/ConversionComparator;
3 5 8 result Ljdk/dynalink/linker/ConversionComparator$Comparison;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljdk/dynalink/linker/ConversionComparator$Comparison;
MethodParameters:
Name Flags
sourceType final
targetType1 final
targetType2 final
static boolean canAutoConvert(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.dynalink.linker.support.TypeUtilities.isMethodInvocationConvertible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fromType Ljava/lang/Class<*>;
0 1 1 toType Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
fromType final
toType final
java.lang.invoke.MethodHandle getCacheableTypeConverterNull(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.dynalink.TypeConverterFactory.getCacheableTypeConverter:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 3
start local 3 1: aload 3
getstatic jdk.dynalink.TypeConverterFactory.IDENTITY_CONVERSION:Ljava/lang/invoke/MethodHandle;
if_acmpne 2
aconst_null
goto 3
StackMap locals: java.lang.invoke.MethodHandle
StackMap stack:
2: aload 3
StackMap locals:
StackMap stack: java.lang.invoke.MethodHandle
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/dynalink/TypeConverterFactory;
0 4 1 sourceType Ljava/lang/Class<*>;
0 4 2 targetType Ljava/lang/Class<*>;
1 4 3 converter Ljava/lang/invoke/MethodHandle;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
sourceType final
targetType final
java.lang.invoke.MethodHandle getTypeConverterNull(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.dynalink.TypeConverterFactory.getCacheableTypeConverterNull:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
1: areturn
2: StackMap locals:
StackMap stack: jdk.dynalink.TypeConverterFactory$NotCacheableConverter
astore 3
start local 3 3: aload 3
getfield jdk.dynalink.TypeConverterFactory$NotCacheableConverter.converter:Ljava/lang/invoke/MethodHandle;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/dynalink/TypeConverterFactory;
0 4 1 sourceType Ljava/lang/Class<*>;
0 4 2 targetType Ljava/lang/Class<*>;
3 4 3 e Ljdk/dynalink/TypeConverterFactory$NotCacheableConverter;
Exception table:
from to target type
0 1 2 Class jdk.dynalink.TypeConverterFactory$NotCacheableConverter
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
sourceType final
targetType final
java.lang.invoke.MethodHandle getCacheableTypeConverter(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.dynalink.TypeConverterFactory.converterMap:Ljava/lang/ClassValue;
aload 1
invokevirtual java.lang.ClassValue.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast jdk.dynalink.ClassMap
aload 2
invokevirtual jdk.dynalink.ClassMap.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.invoke.MethodHandle
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/dynalink/TypeConverterFactory;
0 1 1 sourceType Ljava/lang/Class<*>;
0 1 2 targetType Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
sourceType final
targetType final
java.lang.invoke.MethodHandle getTypeConverter(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.dynalink.TypeConverterFactory.converterIdentityMap:Ljava/lang/ClassValue;
aload 1
invokevirtual java.lang.ClassValue.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast jdk.dynalink.ClassMap
aload 2
invokevirtual jdk.dynalink.ClassMap.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.invoke.MethodHandle
1: areturn
2: StackMap locals:
StackMap stack: jdk.dynalink.TypeConverterFactory$NotCacheableConverter
astore 3
start local 3 3: aload 3
getfield jdk.dynalink.TypeConverterFactory$NotCacheableConverter.converter:Ljava/lang/invoke/MethodHandle;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/dynalink/TypeConverterFactory;
0 4 1 sourceType Ljava/lang/Class<*>;
0 4 2 targetType Ljava/lang/Class<*>;
3 4 3 e Ljdk/dynalink/TypeConverterFactory$NotCacheableConverter;
Exception table:
from to target type
0 1 2 Class jdk.dynalink.TypeConverterFactory$NotCacheableConverter
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
sourceType final
targetType final
java.lang.invoke.MethodHandle createConverter(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x0000)
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
astore 3
start local 3 1: getstatic jdk.dynalink.TypeConverterFactory.IDENTITY_CONVERSION:Ljava/lang/invoke/MethodHandle;
aload 3
invokevirtual java.lang.invoke.MethodHandle.asType:(Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
astore 4
start local 4 2: aload 4
astore 5
start local 5 3: new jdk.dynalink.TypeConverterFactory$LookupSupplier
dup
invokespecial jdk.dynalink.TypeConverterFactory$LookupSupplier.<init>:()V
astore 6
start local 6 4: aload 0
getfield jdk.dynalink.TypeConverterFactory.factories:[Ljdk/dynalink/linker/GuardingTypeConverterFactory;
arraylength
istore 7
start local 7 5: goto 9
6: StackMap locals: jdk.dynalink.TypeConverterFactory java.lang.Class java.lang.Class java.lang.invoke.MethodType java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle jdk.dynalink.TypeConverterFactory$LookupSupplier int
StackMap stack:
aload 0
getfield jdk.dynalink.TypeConverterFactory.factories:[Ljdk/dynalink/linker/GuardingTypeConverterFactory;
iload 7
aaload
aload 1
aload 2
aload 6
invokeinterface jdk.dynalink.linker.GuardingTypeConverterFactory.convertToType:(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
astore 8
start local 8 7: aload 8
ifnull 9
8: aload 8
aload 5
invokevirtual jdk.dynalink.linker.GuardedInvocation.compose:(Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
astore 5
end local 8 9: StackMap locals:
StackMap stack:
iload 7
iinc 7 -1
ifgt 6
end local 7 10: goto 14
StackMap locals: jdk.dynalink.TypeConverterFactory java.lang.Class java.lang.Class java.lang.invoke.MethodType java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle jdk.dynalink.TypeConverterFactory$LookupSupplier
StackMap stack: java.lang.Throwable
11: astore 9
12: aload 6
iconst_1
putfield jdk.dynalink.TypeConverterFactory$LookupSupplier.closed:Z
13: aload 9
athrow
14: StackMap locals:
StackMap stack:
aload 6
iconst_1
putfield jdk.dynalink.TypeConverterFactory$LookupSupplier.closed:Z
15: aload 5
aload 4
if_acmpne 17
16: getstatic jdk.dynalink.TypeConverterFactory.IDENTITY_CONVERSION:Ljava/lang/invoke/MethodHandle;
areturn
17: StackMap locals:
StackMap stack:
aload 6
getfield jdk.dynalink.TypeConverterFactory$LookupSupplier.returnedLookup:Z
ifne 19
18: aload 5
areturn
19: StackMap locals:
StackMap stack:
new jdk.dynalink.TypeConverterFactory$NotCacheableConverter
dup
aload 5
invokespecial jdk.dynalink.TypeConverterFactory$NotCacheableConverter.<init>:(Ljava/lang/invoke/MethodHandle;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/dynalink/TypeConverterFactory;
0 20 1 sourceType Ljava/lang/Class<*>;
0 20 2 targetType Ljava/lang/Class<*>;
1 20 3 type Ljava/lang/invoke/MethodType;
2 20 4 identity Ljava/lang/invoke/MethodHandle;
3 20 5 last Ljava/lang/invoke/MethodHandle;
4 20 6 lookupSupplier Ljdk/dynalink/TypeConverterFactory$LookupSupplier;
5 10 7 i I
7 9 8 next Ljdk/dynalink/linker/GuardedInvocation;
Exception table:
from to target type
4 11 11 any
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
sourceType final
targetType final
}
SourceFile: "TypeConverterFactory.java"
NestMembers:
jdk.dynalink.TypeConverterFactory$1 jdk.dynalink.TypeConverterFactory$1$1 jdk.dynalink.TypeConverterFactory$2 jdk.dynalink.TypeConverterFactory$2$1 jdk.dynalink.TypeConverterFactory$3 jdk.dynalink.TypeConverterFactory$3$1 jdk.dynalink.TypeConverterFactory$4 jdk.dynalink.TypeConverterFactory$LookupSupplier jdk.dynalink.TypeConverterFactory$NotCacheableConverter
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.dynalink.TypeConverterFactory$1
jdk.dynalink.TypeConverterFactory$2
jdk.dynalink.TypeConverterFactory$3
jdk.dynalink.TypeConverterFactory$4
private LookupSupplier = jdk.dynalink.TypeConverterFactory$LookupSupplier of jdk.dynalink.TypeConverterFactory
private NotCacheableConverter = jdk.dynalink.TypeConverterFactory$NotCacheableConverter of jdk.dynalink.TypeConverterFactory
public final Comparison = jdk.dynalink.linker.ConversionComparator$Comparison of jdk.dynalink.linker.ConversionComparator