public final class com.sun.naming.internal.FactoryEnumeration
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.naming.internal.FactoryEnumeration
super_class: java.lang.Object
{
private java.util.List<com.sun.naming.internal.NamedWeakReference<java.lang.Object>> factories;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/sun/naming/internal/NamedWeakReference<Ljava/lang/Object;>;>;
private int posn;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.ClassLoader loader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0002) ACC_PRIVATE
void <init>(java.util.List<com.sun.naming.internal.NamedWeakReference<java.lang.Object>>, java.lang.ClassLoader);
descriptor: (Ljava/util/List;Ljava/lang/ClassLoader;)V
flags: (0x0000)
Code:
stack=2, 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
iconst_0
putfield com.sun.naming.internal.FactoryEnumeration.posn:I
2: aload 0
aload 1
putfield com.sun.naming.internal.FactoryEnumeration.factories:Ljava/util/List;
3: aload 0
aload 2
putfield com.sun.naming.internal.FactoryEnumeration.loader:Ljava/lang/ClassLoader;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/naming/internal/FactoryEnumeration;
0 5 1 factories Ljava/util/List<Lcom/sun/naming/internal/NamedWeakReference<Ljava/lang/Object;>;>;
0 5 2 loader Ljava/lang/ClassLoader;
Signature: (Ljava/util/List<Lcom/sun/naming/internal/NamedWeakReference<Ljava/lang/Object;>;>;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
factories
loader
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield com.sun.naming.internal.FactoryEnumeration.factories:Ljava/util/List;
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.naming.internal.FactoryEnumeration.factories:Ljava/util/List;
aload 0
dup
getfield com.sun.naming.internal.FactoryEnumeration.posn:I
dup_x1
iconst_1
iadd
putfield com.sun.naming.internal.FactoryEnumeration.posn:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.naming.internal.NamedWeakReference
astore 2
start local 2 2: aload 2
invokevirtual com.sun.naming.internal.NamedWeakReference.get:()Ljava/lang/Object;
astore 3
start local 3 3: aload 3
ifnull 6
aload 3
instanceof java.lang.Class
ifne 6
4: aload 3
aload 1
monitorexit
5: areturn
6: StackMap locals: java.util.List com.sun.naming.internal.NamedWeakReference java.lang.Object
StackMap stack:
aload 2
invokevirtual com.sun.naming.internal.NamedWeakReference.getName:()Ljava/lang/String;
astore 4
start local 4 7: aload 3
ifnonnull 10
8: aload 4
iconst_1
aload 0
getfield com.sun.naming.internal.FactoryEnumeration.loader:Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 5
start local 5 9: aload 5
astore 3
end local 5 10: StackMap locals: java.lang.String
StackMap stack:
aload 3
checkcast java.lang.Class
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
astore 5
start local 5 11: aload 5
astore 3
12: new com.sun.naming.internal.NamedWeakReference
dup
aload 3
aload 4
invokespecial com.sun.naming.internal.NamedWeakReference.<init>:(Ljava/lang/Object;Ljava/lang/String;)V
astore 2
13: aload 0
getfield com.sun.naming.internal.FactoryEnumeration.factories:Ljava/util/List;
aload 0
getfield com.sun.naming.internal.FactoryEnumeration.posn:I
iconst_1
isub
aload 2
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
14: aload 3
15: aload 1
monitorexit
16: areturn
end local 5 17: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
astore 5
start local 5 18: new javax.naming.NamingException
dup
new java.lang.StringBuilder
dup
ldc "No longer able to load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
19: astore 6
start local 6 20: aload 6
aload 5
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
21: aload 6
athrow
end local 6 end local 5 22: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 5
start local 5 23: new javax.naming.NamingException
dup
new java.lang.StringBuilder
dup
ldc "Cannot instantiate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
24: astore 6
start local 6 25: aload 6
aload 5
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
26: aload 6
athrow
end local 6 end local 5 27: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 5
start local 5 28: new javax.naming.NamingException
dup
new java.lang.StringBuilder
dup
ldc "Cannot access "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
astore 6
start local 6 29: aload 6
aload 5
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
30: aload 6
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 31: StackMap locals: com.sun.naming.internal.FactoryEnumeration java.util.List
StackMap stack: java.lang.Throwable
aload 1
monitorexit
32: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lcom/sun/naming/internal/FactoryEnumeration;
2 31 2 ref Lcom/sun/naming/internal/NamedWeakReference<Ljava/lang/Object;>;
3 31 3 answer Ljava/lang/Object;
7 31 4 className Ljava/lang/String;
9 10 5 cls Ljava/lang/Class<*>;
11 17 5 tmp Ljava/lang/Object;
18 22 5 e Ljava/lang/ClassNotFoundException;
20 22 6 ne Ljavax/naming/NamingException;
23 27 5 e Ljava/lang/InstantiationException;
25 27 6 ne Ljavax/naming/NamingException;
28 31 5 e Ljava/lang/IllegalAccessException;
29 31 6 ne Ljavax/naming/NamingException;
Exception table:
from to target type
7 15 17 Class java.lang.ClassNotFoundException
7 15 22 Class java.lang.InstantiationException
7 15 27 Class java.lang.IllegalAccessException
1 5 31 any
6 16 31 any
17 32 31 any
Exceptions:
throws javax.naming.NamingException
public boolean hasMore();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.naming.internal.FactoryEnumeration.factories:Ljava/util/List;
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.naming.internal.FactoryEnumeration.posn:I
aload 0
getfield com.sun.naming.internal.FactoryEnumeration.factories:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 2
iconst_1
goto 3
StackMap locals: java.util.List
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: aload 1
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/naming/internal/FactoryEnumeration;
Exception table:
from to target type
1 4 5 any
5 6 5 any
}
SourceFile: "FactoryEnumeration.java"