class com.sun.tools.example.debug.tty.ThreadGroupIterator implements java.util.Iterator<com.sun.jdi.ThreadGroupReference>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.example.debug.tty.ThreadGroupIterator
super_class: java.lang.Object
{
private final java.util.Stack<java.util.Iterator<com.sun.jdi.ThreadGroupReference>> stack;
descriptor: Ljava/util/Stack;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Stack<Ljava/util/Iterator<Lcom/sun/jdi/ThreadGroupReference;>;>;
void <init>(java.util.List<com.sun.jdi.ThreadGroupReference>);
descriptor: (Ljava/util/List;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.Stack
dup
invokespecial java.util.Stack.<init>:()V
putfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
2: aload 0
aload 1
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.push:(Ljava/util/List;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
0 4 1 tgl Ljava/util/List<Lcom/sun/jdi/ThreadGroupReference;>;
Signature: (Ljava/util/List<Lcom/sun/jdi/ThreadGroupReference;>;)V
MethodParameters:
Name Flags
tgl
void <init>(com.sun.jdi.ThreadGroupReference);
descriptor: (Lcom/sun/jdi/ThreadGroupReference;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.Stack
dup
invokespecial java.util.Stack.<init>:()V
putfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 3: aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 0
aload 2
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.push:(Ljava/util/List;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
0 6 1 tg Lcom/sun/jdi/ThreadGroupReference;
3 6 2 tgl Ljava/util/List<Lcom/sun/jdi/ThreadGroupReference;>;
MethodParameters:
Name Flags
tg
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.sun.tools.example.debug.tty.Env.vm:()Lcom/sun/jdi/VirtualMachine;
invokeinterface com.sun.jdi.VirtualMachine.topLevelThreadGroups:()Ljava/util/List;
invokespecial com.sun.tools.example.debug.tty.ThreadGroupIterator.<init>:(Ljava/util/List;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
private java.util.Iterator<com.sun.jdi.ThreadGroupReference> top();
descriptor: ()Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
invokevirtual java.util.Stack.peek:()Ljava/lang/Object;
checkcast java.util.Iterator
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
Signature: ()Ljava/util/Iterator<Lcom/sun/jdi/ThreadGroupReference;>;
private void push(java.util.List<com.sun.jdi.ThreadGroupReference>);
descriptor: (Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
invokevirtual java.util.Stack.pop:()Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
invokevirtual java.util.Stack.isEmpty:()Z
ifne 4
aload 0
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.top:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 2
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
0 5 1 tgl Ljava/util/List<Lcom/sun/jdi/ThreadGroupReference;>;
Signature: (Ljava/util/List<Lcom/sun/jdi/ThreadGroupReference;>;)V
MethodParameters:
Name Flags
tgl
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.example.debug.tty.ThreadGroupIterator.stack:Ljava/util/Stack;
invokevirtual java.util.Stack.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
public com.sun.jdi.ThreadGroupReference next();
descriptor: ()Lcom/sun/jdi/ThreadGroupReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.nextThreadGroup:()Lcom/sun/jdi/ThreadGroupReference;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
public com.sun.jdi.ThreadGroupReference nextThreadGroup();
descriptor: ()Lcom/sun/jdi/ThreadGroupReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.top:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.jdi.ThreadGroupReference
astore 1
start local 1 1: aload 0
aload 1
invokeinterface com.sun.jdi.ThreadGroupReference.threadGroups:()Ljava/util/List;
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.push:(Ljava/util/List;)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
1 3 1 tg Lcom/sun/jdi/ThreadGroupReference;
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 Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
static com.sun.jdi.ThreadGroupReference find(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/jdi/ThreadGroupReference;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: new com.sun.tools.example.debug.tty.ThreadGroupIterator
dup
invokespecial com.sun.tools.example.debug.tty.ThreadGroupIterator.<init>:()V
astore 1
start local 1 1: goto 5
2: StackMap locals: com.sun.tools.example.debug.tty.ThreadGroupIterator
StackMap stack:
aload 1
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.nextThreadGroup:()Lcom/sun/jdi/ThreadGroupReference;
astore 2
start local 2 3: aload 2
invokeinterface com.sun.jdi.ThreadGroupReference.name:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.hasNext:()Z
ifne 2
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 name Ljava/lang/String;
1 7 1 tgi Lcom/sun/tools/example/debug/tty/ThreadGroupIterator;
3 5 2 tg Lcom/sun/jdi/ThreadGroupReference;
MethodParameters:
Name Flags
name
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.sun.tools.example.debug.tty.ThreadGroupIterator.next:()Lcom/sun/jdi/ThreadGroupReference;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Iterator<Lcom/sun/jdi/ThreadGroupReference;>;
SourceFile: "ThreadGroupIterator.java"