class com.sun.tools.hat.internal.server.InstancesQuery extends com.sun.tools.hat.internal.server.QueryHandler
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.hat.internal.server.InstancesQuery
super_class: com.sun.tools.hat.internal.server.QueryHandler
{
private boolean includeSubclasses;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean newObjects;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // com.sun.tools.hat.internal.server.InstancesQuery this
start local 1 // boolean includeSubclasses
0: .line 49
aload 0 /* this */
invokespecial com.sun.tools.hat.internal.server.QueryHandler.<init>:()V
1: .line 50
aload 0 /* this */
iload 1 /* includeSubclasses */
putfield com.sun.tools.hat.internal.server.InstancesQuery.includeSubclasses:Z
2: .line 51
return
end local 1 // boolean includeSubclasses
end local 0 // com.sun.tools.hat.internal.server.InstancesQuery this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/hat/internal/server/InstancesQuery;
0 3 1 includeSubclasses Z
MethodParameters:
Name Flags
includeSubclasses
public void <init>(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 // com.sun.tools.hat.internal.server.InstancesQuery this
start local 1 // boolean includeSubclasses
start local 2 // boolean newObjects
0: .line 53
aload 0 /* this */
invokespecial com.sun.tools.hat.internal.server.QueryHandler.<init>:()V
1: .line 54
aload 0 /* this */
iload 1 /* includeSubclasses */
putfield com.sun.tools.hat.internal.server.InstancesQuery.includeSubclasses:Z
2: .line 55
aload 0 /* this */
iload 2 /* newObjects */
putfield com.sun.tools.hat.internal.server.InstancesQuery.newObjects:Z
3: .line 56
return
end local 2 // boolean newObjects
end local 1 // boolean includeSubclasses
end local 0 // com.sun.tools.hat.internal.server.InstancesQuery this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/hat/internal/server/InstancesQuery;
0 4 1 includeSubclasses Z
0 4 2 newObjects Z
MethodParameters:
Name Flags
includeSubclasses
newObjects
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=1
start local 0 // com.sun.tools.hat.internal.server.InstancesQuery this
0: .line 59
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.snapshot:Lcom/sun/tools/hat/internal/model/Snapshot;
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.query:Ljava/lang/String;
invokevirtual com.sun.tools.hat.internal.model.Snapshot.findClass:(Ljava/lang/String;)Lcom/sun/tools/hat/internal/model/JavaClass;
astore 1 /* clazz */
start local 1 // com.sun.tools.hat.internal.model.JavaClass clazz
1: .line 61
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.newObjects:Z
ifeq 4
2: .line 62
ldc "New instances of "
astore 2 /* instancesOf */
start local 2 // java.lang.String instancesOf
3: goto 5
end local 2 // java.lang.String instancesOf
4: .line 64
StackMap locals: com.sun.tools.hat.internal.model.JavaClass
StackMap stack:
ldc "Instances of "
astore 2 /* instancesOf */
start local 2 // java.lang.String instancesOf
5: .line 65
StackMap locals: java.lang.String
StackMap stack:
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.includeSubclasses:Z
ifeq 8
6: .line 66
aload 0 /* this */
new java.lang.StringBuilder
dup
aload 2 /* instancesOf */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.query:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " (including subclasses)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.sun.tools.hat.internal.server.InstancesQuery.startHtml:(Ljava/lang/String;)V
7: .line 67
goto 9
8: .line 68
StackMap locals:
StackMap stack:
aload 0 /* this */
new java.lang.StringBuilder
dup
aload 2 /* instancesOf */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.query:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.sun.tools.hat.internal.server.InstancesQuery.startHtml:(Ljava/lang/String;)V
9: .line 70
StackMap locals:
StackMap stack:
aload 1 /* clazz */
ifnonnull 12
10: .line 71
aload 0 /* this */
ldc "Class not found"
invokevirtual com.sun.tools.hat.internal.server.InstancesQuery.error:(Ljava/lang/String;)V
11: .line 72
goto 28
12: .line 73
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.out:Ljava/io/PrintWriter;
ldc "<strong>"
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
13: .line 74
aload 0 /* this */
aload 1 /* clazz */
invokevirtual com.sun.tools.hat.internal.server.InstancesQuery.printClass:(Lcom/sun/tools/hat/internal/model/JavaClass;)V
14: .line 75
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.out:Ljava/io/PrintWriter;
ldc "</strong><br><br>"
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
15: .line 76
aload 1 /* clazz */
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.includeSubclasses:Z
invokevirtual com.sun.tools.hat.internal.model.JavaClass.getInstances:(Z)Ljava/util/Enumeration;
astore 3 /* objects */
start local 3 // java.util.Enumeration objects
16: .line 77
lconst_0
lstore 4 /* totalSize */
start local 4 // long totalSize
17: .line 78
lconst_0
lstore 6 /* instances */
start local 6 // long instances
18: .line 79
goto 26
19: .line 80
StackMap locals: java.util.Enumeration long long
StackMap stack:
aload 3 /* objects */
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast com.sun.tools.hat.internal.model.JavaHeapObject
astore 8 /* obj */
start local 8 // com.sun.tools.hat.internal.model.JavaHeapObject obj
20: .line 81
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.newObjects:Z
ifeq 22
aload 8 /* obj */
invokevirtual com.sun.tools.hat.internal.model.JavaHeapObject.isNew:()Z
ifne 22
21: .line 82
goto 26
22: .line 83
StackMap locals: com.sun.tools.hat.internal.model.JavaHeapObject
StackMap stack:
aload 0 /* this */
aload 8 /* obj */
invokevirtual com.sun.tools.hat.internal.server.InstancesQuery.printThing:(Lcom/sun/tools/hat/internal/model/JavaThing;)V
23: .line 84
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.out:Ljava/io/PrintWriter;
ldc "<br>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
24: .line 85
lload 4 /* totalSize */
aload 8 /* obj */
invokevirtual com.sun.tools.hat.internal.model.JavaHeapObject.getSize:()I
i2l
ladd
lstore 4 /* totalSize */
25: .line 86
lload 6 /* instances */
lconst_1
ladd
lstore 6 /* instances */
end local 8 // com.sun.tools.hat.internal.model.JavaHeapObject obj
26: .line 79
StackMap locals:
StackMap stack:
aload 3 /* objects */
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 19
27: .line 88
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.InstancesQuery.out:Ljava/io/PrintWriter;
new java.lang.StringBuilder
dup
ldc "<h2>Total of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 6 /* instances */
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " instances occupying "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 4 /* totalSize */
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " bytes.</h2>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 6 // long instances
end local 4 // long totalSize
end local 3 // java.util.Enumeration objects
28: .line 90
StackMap locals:
StackMap stack:
aload 0 /* this */
invokevirtual com.sun.tools.hat.internal.server.InstancesQuery.endHtml:()V
29: .line 91
return
end local 2 // java.lang.String instancesOf
end local 1 // com.sun.tools.hat.internal.model.JavaClass clazz
end local 0 // com.sun.tools.hat.internal.server.InstancesQuery this
LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lcom/sun/tools/hat/internal/server/InstancesQuery;
1 30 1 clazz Lcom/sun/tools/hat/internal/model/JavaClass;
3 4 2 instancesOf Ljava/lang/String;
5 30 2 instancesOf Ljava/lang/String;
16 28 3 objects Ljava/util/Enumeration;
17 28 4 totalSize J
18 28 6 instances J
20 26 8 obj Lcom/sun/tools/hat/internal/model/JavaHeapObject;
}
SourceFile: "InstancesQuery.java"