public class com.sun.tools.example.debug.gui.CommandTool extends javax.swing.JPanel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.example.debug.gui.CommandTool
super_class: javax.swing.JPanel
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8613516856378346415
private com.sun.tools.example.debug.gui.Environment env;
descriptor: Lcom/sun/tools/example/debug/gui/Environment;
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.example.debug.gui.ContextManager context;
descriptor: Lcom/sun/tools/example/debug/gui/ContextManager;
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.example.debug.bdi.ExecutionManager runtime;
descriptor: Lcom/sun/tools/example/debug/bdi/ExecutionManager;
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.example.debug.gui.SourceManager sourceManager;
descriptor: Lcom/sun/tools/example/debug/gui/SourceManager;
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.example.debug.gui.TypeScript script;
descriptor: Lcom/sun/tools/example/debug/gui/TypeScript;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String DEFAULT_CMD_PROMPT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Command:"
public void <init>(com.sun.tools.example.debug.gui.Environment);
descriptor: (Lcom/sun/tools/example/debug/gui/Environment;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
new java.awt.BorderLayout
dup
invokespecial java.awt.BorderLayout.<init>:()V
invokespecial javax.swing.JPanel.<init>:(Ljava/awt/LayoutManager;)V
1: aload 0
aload 1
putfield com.sun.tools.example.debug.gui.CommandTool.env:Lcom/sun/tools/example/debug/gui/Environment;
2: aload 0
aload 1
invokevirtual com.sun.tools.example.debug.gui.Environment.getContextManager:()Lcom/sun/tools/example/debug/gui/ContextManager;
putfield com.sun.tools.example.debug.gui.CommandTool.context:Lcom/sun/tools/example/debug/gui/ContextManager;
3: aload 0
aload 1
invokevirtual com.sun.tools.example.debug.gui.Environment.getExecutionManager:()Lcom/sun/tools/example/debug/bdi/ExecutionManager;
putfield com.sun.tools.example.debug.gui.CommandTool.runtime:Lcom/sun/tools/example/debug/bdi/ExecutionManager;
4: aload 0
aload 1
invokevirtual com.sun.tools.example.debug.gui.Environment.getSourceManager:()Lcom/sun/tools/example/debug/gui/SourceManager;
putfield com.sun.tools.example.debug.gui.CommandTool.sourceManager:Lcom/sun/tools/example/debug/gui/SourceManager;
5: aload 0
new com.sun.tools.example.debug.gui.TypeScript
dup
ldc "Command:"
iconst_0
invokespecial com.sun.tools.example.debug.gui.TypeScript.<init>:(Ljava/lang/String;Z)V
putfield com.sun.tools.example.debug.gui.CommandTool.script:Lcom/sun/tools/example/debug/gui/TypeScript;
6: aload 0
aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.script:Lcom/sun/tools/example/debug/gui/TypeScript;
invokevirtual com.sun.tools.example.debug.gui.CommandTool.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
7: new com.sun.tools.example.debug.gui.CommandInterpreter
dup
aload 1
invokespecial com.sun.tools.example.debug.gui.CommandInterpreter.<init>:(Lcom/sun/tools/example/debug/gui/Environment;)V
8: astore 2
start local 2 9: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.script:Lcom/sun/tools/example/debug/gui/TypeScript;
new com.sun.tools.example.debug.gui.CommandTool$1
dup
aload 0
aload 2
invokespecial com.sun.tools.example.debug.gui.CommandTool$1.<init>:(Lcom/sun/tools/example/debug/gui/CommandTool;Lcom/sun/tools/example/debug/gui/CommandInterpreter;)V
invokevirtual com.sun.tools.example.debug.gui.TypeScript.addActionListener:(Ljava/awt/event/ActionListener;)V
10: new com.sun.tools.example.debug.gui.TypeScriptOutputListener
dup
aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.script:Lcom/sun/tools/example/debug/gui/TypeScript;
iconst_1
invokespecial com.sun.tools.example.debug.gui.TypeScriptOutputListener.<init>:(Lcom/sun/tools/example/debug/gui/TypeScript;Z)V
11: astore 3
start local 3 12: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.runtime:Lcom/sun/tools/example/debug/bdi/ExecutionManager;
aload 3
invokevirtual com.sun.tools.example.debug.bdi.ExecutionManager.addDiagnosticsListener:(Lcom/sun/tools/example/debug/bdi/OutputListener;)V
13: aload 1
new java.io.PrintWriter
dup
new com.sun.tools.example.debug.gui.TypeScriptWriter
dup
aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.script:Lcom/sun/tools/example/debug/gui/TypeScript;
invokespecial com.sun.tools.example.debug.gui.TypeScriptWriter.<init>:(Lcom/sun/tools/example/debug/gui/TypeScript;)V
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
invokevirtual com.sun.tools.example.debug.gui.Environment.setTypeScript:(Ljava/io/PrintWriter;)V
14: new com.sun.tools.example.debug.gui.CommandTool$TTYDebugListener
dup
aload 0
aload 3
invokespecial com.sun.tools.example.debug.gui.CommandTool$TTYDebugListener.<init>:(Lcom/sun/tools/example/debug/gui/CommandTool;Lcom/sun/tools/example/debug/bdi/OutputListener;)V
astore 4
start local 4 15: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.runtime:Lcom/sun/tools/example/debug/bdi/ExecutionManager;
aload 4
invokevirtual com.sun.tools.example.debug.bdi.ExecutionManager.addJDIListener:(Lcom/sun/tools/example/debug/event/JDIListener;)V
16: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.runtime:Lcom/sun/tools/example/debug/bdi/ExecutionManager;
aload 4
invokevirtual com.sun.tools.example.debug.bdi.ExecutionManager.addSessionListener:(Lcom/sun/tools/example/debug/bdi/SessionListener;)V
17: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.runtime:Lcom/sun/tools/example/debug/bdi/ExecutionManager;
aload 4
invokevirtual com.sun.tools.example.debug.bdi.ExecutionManager.addSpecListener:(Lcom/sun/tools/example/debug/bdi/SpecListener;)V
18: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.context:Lcom/sun/tools/example/debug/gui/ContextManager;
aload 4
invokevirtual com.sun.tools.example.debug.gui.ContextManager.addContextListener:(Lcom/sun/tools/example/debug/gui/ContextListener;)V
19: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/sun/tools/example/debug/gui/CommandTool;
0 20 1 env Lcom/sun/tools/example/debug/gui/Environment;
9 20 2 interpreter Lcom/sun/tools/example/debug/gui/CommandInterpreter;
12 20 3 diagnosticsListener Lcom/sun/tools/example/debug/bdi/OutputListener;
15 20 4 listener Lcom/sun/tools/example/debug/gui/CommandTool$TTYDebugListener;
MethodParameters:
Name Flags
env
private java.lang.String locationString(com.sun.tools.example.debug.event.LocatableEventSet);
descriptor: (Lcom/sun/tools/example/debug/event/LocatableEventSet;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.tools.example.debug.event.LocatableEventSet.getLocation:()Lcom/sun/jdi/Location;
astore 2
start local 2 1: new java.lang.StringBuilder
dup
ldc "thread=\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual com.sun.tools.example.debug.event.LocatableEventSet.getThread:()Lcom/sun/jdi/ThreadReference;
invokeinterface com.sun.jdi.ThreadReference.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc "\", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokestatic com.sun.tools.example.debug.bdi.Utils.locationString:(Lcom/sun/jdi/Location;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/example/debug/gui/CommandTool;
0 4 1 e Lcom/sun/tools/example/debug/event/LocatableEventSet;
1 4 2 loc Lcom/sun/jdi/Location;
MethodParameters:
Name Flags
e
private void setThread(com.sun.tools.example.debug.event.LocatableEventSet);
descriptor: (Lcom/sun/tools/example/debug/event/LocatableEventSet;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.tools.example.debug.event.LocatableEventSet.suspendedNone:()Z
ifne 3
1: invokestatic java.lang.Thread.yield:()V
2: aload 0
getfield com.sun.tools.example.debug.gui.CommandTool.script:Lcom/sun/tools/example/debug/gui/TypeScript;
aload 0
aload 1
invokevirtual com.sun.tools.example.debug.event.LocatableEventSet.getThread:()Lcom/sun/jdi/ThreadReference;
iconst_0
invokevirtual com.sun.tools.example.debug.gui.CommandTool.promptString:(Lcom/sun/jdi/ThreadReference;I)Ljava/lang/String;
invokevirtual com.sun.tools.example.debug.gui.TypeScript.setPrompt:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/example/debug/gui/CommandTool;
0 4 1 e Lcom/sun/tools/example/debug/event/LocatableEventSet;
MethodParameters:
Name Flags
e
private java.lang.String promptString(com.sun.jdi.ThreadReference, int);
descriptor: (Lcom/sun/jdi/ThreadReference;I)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: ldc "Command:"
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokeinterface com.sun.jdi.ThreadReference.name:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
iconst_1
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/example/debug/gui/CommandTool;
0 3 1 thread Lcom/sun/jdi/ThreadReference;
0 3 2 frameIndex I
MethodParameters:
Name Flags
thread
frameIndex
}
SourceFile: "CommandTool.java"
NestMembers:
com.sun.tools.example.debug.gui.CommandTool$1 com.sun.tools.example.debug.gui.CommandTool$TTYDebugListener
InnerClasses:
com.sun.tools.example.debug.gui.CommandTool$1
private TTYDebugListener = com.sun.tools.example.debug.gui.CommandTool$TTYDebugListener of com.sun.tools.example.debug.gui.CommandTool