final class org.eclipse.collections.api.factory.ServiceLoaderUtils
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.api.factory.ServiceLoaderUtils
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: new java.lang.AssertionError
dup
ldc "Suppress default constructor for noninstantiability"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/api/factory/ServiceLoaderUtils;
static <T> T loadServiceClass(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.lang.Class java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 2
start local 2 3: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
invokeinterface java.util.List.isEmpty:()Z
ifeq 8
6: new java.lang.StringBuilder
dup
ldc "Could not find any implementations of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ". Check that eclipse-collections.jar is on the classpath and that its META-INF/services directory is intact."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 7: aload 0
aload 2
invokestatic org.eclipse.collections.api.factory.ServiceLoaderUtils.createProxyInstance:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 2 8: StackMap locals: java.lang.Class java.util.List
StackMap stack:
aload 1
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 17
9: ldc "Found multiple implementations of %s on the classpath. Check that there is only one copy of eclipse-collections.jar on the classpath. Found implementations: %s."
iconst_2
anewarray java.lang.Object
dup
iconst_0
10: aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
11: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
12: 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/Object.getClass()Ljava/lang/Class; (5)
(Ljava/lang/Object;)Ljava/lang/Class;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
13: 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/Class.getSimpleName()Ljava/lang/String; (5)
(Ljava/lang/Class;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
14: ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
aastore
15: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 16: aload 0
aload 2
invokestatic org.eclipse.collections.api.factory.ServiceLoaderUtils.createProxyInstance:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 2 17: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 serviceClass Ljava/lang/Class<TT;>;
1 18 1 factories Ljava/util/List<TT;>;
3 4 2 factory TT;
7 8 2 message Ljava/lang/String;
16 17 2 message Ljava/lang/String;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
serviceClass
private static <T> T createProxyInstance(java.lang.Class<T>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new org.eclipse.collections.api.factory.ThrowingInvocationHandler
dup
aload 1
invokespecial org.eclipse.collections.api.factory.ThrowingInvocationHandler.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
2: iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 0
aastore
3: aload 2
4: invokestatic java.lang.reflect.Proxy.newProxyInstance:(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
astore 3
start local 3 5: aload 0
aload 3
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 serviceClass Ljava/lang/Class<TT;>;
0 6 1 message Ljava/lang/String;
1 6 2 handler Ljava/lang/reflect/InvocationHandler;
5 6 3 proxyInstance Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/lang/String;)TT;
MethodParameters:
Name Flags
serviceClass
message
}
SourceFile: "ServiceLoaderUtils.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles