class sun.misc.Service$LazyIterator<S> implements java.util.Iterator<S>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.misc.Service$LazyIterator
super_class: java.lang.Object
{
java.lang.Class<S> service;
descriptor: Ljava/lang/Class;
flags: (0x0000)
Signature: Ljava/lang/Class<TS;>;
java.lang.ClassLoader loader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0000)
java.util.Enumeration<java.net.URL> configs;
descriptor: Ljava/util/Enumeration;
flags: (0x0000)
Signature: Ljava/util/Enumeration<Ljava/net/URL;>;
java.util.Iterator<java.lang.String> pending;
descriptor: Ljava/util/Iterator;
flags: (0x0000)
Signature: Ljava/util/Iterator<Ljava/lang/String;>;
java.util.Set<java.lang.String> returned;
descriptor: Ljava/util/Set;
flags: (0x0000)
Signature: Ljava/util/Set<Ljava/lang/String;>;
java.lang.String nextName;
descriptor: Ljava/lang/String;
flags: (0x0000)
private void <init>(java.lang.Class<S>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.misc.Service$LazyIterator.configs:Ljava/util/Enumeration;
2: aload 0
aconst_null
putfield sun.misc.Service$LazyIterator.pending:Ljava/util/Iterator;
3: aload 0
new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
putfield sun.misc.Service$LazyIterator.returned:Ljava/util/Set;
4: aload 0
aconst_null
putfield sun.misc.Service$LazyIterator.nextName:Ljava/lang/String;
5: aload 0
aload 1
putfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
6: aload 0
aload 2
putfield sun.misc.Service$LazyIterator.loader:Ljava/lang/ClassLoader;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/misc/Service$LazyIterator<TS;>;
0 8 1 service Ljava/lang/Class<TS;>;
0 8 2 loader Ljava/lang/ClassLoader;
Signature: (Ljava/lang/Class<TS;>;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
service
loader
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.misc.Service$LazyIterator.nextName:Ljava/lang/String;
ifnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Service$LazyIterator.configs:Ljava/util/Enumeration;
ifnonnull 14
3: new java.lang.StringBuilder
dup
ldc "META-INF/services/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
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;
astore 1
start local 1 4: aload 0
getfield sun.misc.Service$LazyIterator.loader:Ljava/lang/ClassLoader;
ifnonnull 6
5: aload 0
aload 1
invokestatic java.lang.ClassLoader.getSystemResources:(Ljava/lang/String;)Ljava/util/Enumeration;
putfield sun.misc.Service$LazyIterator.configs:Ljava/util/Enumeration;
goto 14
6: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 0
getfield sun.misc.Service$LazyIterator.loader:Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
putfield sun.misc.Service$LazyIterator.configs:Ljava/util/Enumeration;
end local 1 7: goto 14
StackMap locals: sun.misc.Service$LazyIterator
StackMap stack: java.io.IOException
8: astore 1
start local 1 9: aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
new java.lang.StringBuilder
dup
ldc ": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
end local 1 10: goto 14
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Service$LazyIterator.configs:Ljava/util/Enumeration;
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 13
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
aload 0
getfield sun.misc.Service$LazyIterator.configs:Ljava/util/Enumeration;
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
aload 0
getfield sun.misc.Service$LazyIterator.returned:Ljava/util/Set;
invokestatic sun.misc.Service.parse:(Ljava/lang/Class;Ljava/net/URL;Ljava/util/Set;)Ljava/util/Iterator;
putfield sun.misc.Service$LazyIterator.pending:Ljava/util/Iterator;
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Service$LazyIterator.pending:Ljava/util/Iterator;
ifnull 11
aload 0
getfield sun.misc.Service$LazyIterator.pending:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 11
15: aload 0
aload 0
getfield sun.misc.Service$LazyIterator.pending:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
putfield sun.misc.Service$LazyIterator.nextName:Ljava/lang/String;
16: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/misc/Service$LazyIterator<TS;>;
4 7 1 fullName Ljava/lang/String;
9 10 1 x Ljava/io/IOException;
Exception table:
from to target type
3 7 8 Class java.io.IOException
Exceptions:
throws sun.misc.ServiceConfigurationError
public S next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.Service$LazyIterator.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Service$LazyIterator.nextName:Ljava/lang/String;
astore 1
start local 1 3: aload 0
aconst_null
putfield sun.misc.Service$LazyIterator.nextName:Ljava/lang/String;
4: aconst_null
astore 2
start local 2 5: aload 1
iconst_0
aload 0
getfield sun.misc.Service$LazyIterator.loader:Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 2
6: goto 11
StackMap locals: sun.misc.Service$LazyIterator java.lang.String java.lang.Class
StackMap stack: java.lang.ClassNotFoundException
7: pop
8: aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
9: new java.lang.StringBuilder
dup
ldc "Provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 15
12: aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
13: new java.lang.StringBuilder
dup
ldc "Provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not a subtype"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
aload 2
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
16: areturn
17: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 18: aload 0
getfield sun.misc.Service$LazyIterator.service:Ljava/lang/Class;
19: new java.lang.StringBuilder
dup
ldc "Provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " could not be instantiated"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: aload 3
21: invokestatic sun.misc.Service.fail:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 22: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/misc/Service$LazyIterator<TS;>;
3 23 1 cn Ljava/lang/String;
5 23 2 c Ljava/lang/Class<*>;
18 22 3 x Ljava/lang/Throwable;
Exception table:
from to target type
5 6 7 Class java.lang.ClassNotFoundException
15 16 17 Class java.lang.Throwable
Exceptions:
throws sun.misc.ServiceConfigurationError
Signature: ()TS;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Service$LazyIterator<TS;>;
}
Signature: <S:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TS;>;
SourceFile: "Service.java"
NestHost: sun.misc.Service
InnerClasses:
private LazyIterator = sun.misc.Service$LazyIterator of sun.misc.Service