public class sun.jvm.hotspot.ui.DebuggerConsolePanel extends javax.swing.JPanel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.ui.DebuggerConsolePanel
super_class: javax.swing.JPanel
{
private sun.jvm.hotspot.debugger.Debugger debugger;
descriptor: Lsun/jvm/hotspot/debugger/Debugger;
flags: (0x0002) ACC_PRIVATE
private javax.swing.text.JTextComponent editor;
descriptor: Ljavax/swing/text/JTextComponent;
flags: (0x0002) ACC_PRIVATE
private boolean updating;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int mark;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String curText;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static final boolean DEBUGGING;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public void <init>(sun.jvm.hotspot.debugger.Debugger);
descriptor: (Lsun/jvm/hotspot/debugger/Debugger;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.swing.JPanel.<init>:()V
1: aload 0
aload 1
putfield sun.jvm.hotspot.ui.DebuggerConsolePanel.debugger:Lsun/jvm/hotspot/debugger/Debugger;
2: getstatic sun.jvm.hotspot.utilities.Assert.ASSERTS_ENABLED:Z
ifeq 4
3: aload 1
invokeinterface sun.jvm.hotspot.debugger.Debugger.hasConsole:()Z
ldc "should not create a DebuggerConsolePanel for non-console debuggers"
invokestatic sun.jvm.hotspot.utilities.Assert.that:(ZLjava/lang/String;)V
4: StackMap locals: sun.jvm.hotspot.ui.DebuggerConsolePanel sun.jvm.hotspot.debugger.Debugger
StackMap stack:
aload 0
new java.awt.BorderLayout
dup
invokespecial java.awt.BorderLayout.<init>:()V
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.setLayout:(Ljava/awt/LayoutManager;)V
5: aload 0
new javax.swing.JTextArea
dup
invokespecial javax.swing.JTextArea.<init>:()V
putfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
6: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
new sun.jvm.hotspot.ui.EditableAtEndDocument
dup
invokespecial sun.jvm.hotspot.ui.EditableAtEndDocument.<init>:()V
invokevirtual javax.swing.text.JTextComponent.setDocument:(Ljavax/swing/text/Document;)V
7: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
ldc "Courier"
invokestatic sun.jvm.hotspot.ui.GraphicsUtilities.lookupFont:(Ljava/lang/String;)Ljava/awt/Font;
invokevirtual javax.swing.text.JTextComponent.setFont:(Ljava/awt/Font;)V
8: new javax.swing.JScrollPane
dup
invokespecial javax.swing.JScrollPane.<init>:()V
astore 2
start local 2 9: aload 2
invokevirtual javax.swing.JScrollPane.getViewport:()Ljavax/swing/JViewport;
aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.JViewport.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
10: aload 0
aload 2
ldc "Center"
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.add:(Ljava/awt/Component;Ljava/lang/Object;)V
11: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
new sun.jvm.hotspot.ui.DebuggerConsolePanel$1
dup
aload 0
invokespecial sun.jvm.hotspot.ui.DebuggerConsolePanel$1.<init>:(Lsun/jvm/hotspot/ui/DebuggerConsolePanel;)V
invokeinterface javax.swing.text.Document.addDocumentListener:(Ljavax/swing/event/DocumentListener;)V
12: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
new sun.jvm.hotspot.ui.DebuggerConsolePanel$2
dup
aload 0
invokespecial sun.jvm.hotspot.ui.DebuggerConsolePanel$2.<init>:(Lsun/jvm/hotspot/ui/DebuggerConsolePanel;)V
invokevirtual javax.swing.text.JTextComponent.addCaretListener:(Ljavax/swing/event/CaretListener;)V
13: invokestatic javax.swing.Box.createHorizontalBox:()Ljavax/swing/Box;
astore 3
start local 3 14: aload 3
invokestatic javax.swing.Box.createGlue:()Ljava/awt/Component;
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
15: new javax.swing.JButton
dup
ldc "Clear Saved Text"
invokespecial javax.swing.JButton.<init>:(Ljava/lang/String;)V
astore 4
start local 4 16: aload 4
new sun.jvm.hotspot.ui.DebuggerConsolePanel$3
dup
aload 0
invokespecial sun.jvm.hotspot.ui.DebuggerConsolePanel$3.<init>:(Lsun/jvm/hotspot/ui/DebuggerConsolePanel;)V
invokevirtual javax.swing.JButton.addActionListener:(Ljava/awt/event/ActionListener;)V
17: aload 3
aload 4
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
18: aload 3
invokestatic javax.swing.Box.createGlue:()Ljava/awt/Component;
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
19: aload 0
aload 3
ldc "South"
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.add:(Ljava/awt/Component;Ljava/lang/Object;)V
20: aload 0
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.clear:()V
21: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
0 22 1 debugger Lsun/jvm/hotspot/debugger/Debugger;
9 22 2 scroller Ljavax/swing/JScrollPane;
14 22 3 hbox Ljavax/swing/Box;
16 22 4 button Ljavax/swing/JButton;
MethodParameters:
Name Flags
debugger
public void requestFocus();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.requestFocus:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
checkcast sun.jvm.hotspot.ui.EditableAtEndDocument
astore 1
start local 1 1: aload 1
invokevirtual sun.jvm.hotspot.ui.EditableAtEndDocument.clear:()V
2: aload 0
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.printPrompt:()V
3: aload 0
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.setMark:()V
4: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.requestFocus:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
1 6 1 d Lsun/jvm/hotspot/ui/EditableAtEndDocument;
public void setMark();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
checkcast sun.jvm.hotspot.ui.EditableAtEndDocument
invokevirtual sun.jvm.hotspot.ui.EditableAtEndDocument.setMark:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
public java.lang.String getMarkedText();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
checkcast sun.jvm.hotspot.ui.EditableAtEndDocument
invokevirtual sun.jvm.hotspot.ui.EditableAtEndDocument.getMarkedText:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 2: goto 4
3: StackMap locals: java.lang.String int
StackMap stack:
iinc 2 -1
4: StackMap locals:
StackMap stack:
iload 2
ifle 5
aload 1
iload 2
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 10
if_icmpeq 3
5: StackMap locals:
StackMap stack:
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
6: areturn
end local 2 end local 1 7: StackMap locals: sun.jvm.hotspot.ui.DebuggerConsolePanel
StackMap stack: javax.swing.text.BadLocationException
astore 1
start local 1 8: aload 1
invokevirtual javax.swing.text.BadLocationException.printStackTrace:()V
9: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
1 7 1 s Ljava/lang/String;
2 7 2 i I
8 10 1 e Ljavax/swing/text/BadLocationException;
Exception table:
from to target type
0 6 7 Class javax.swing.text.BadLocationException
private void beginUpdate();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield sun.jvm.hotspot.ui.DebuggerConsolePanel.updating:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
private void endUpdate();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield sun.jvm.hotspot.ui.DebuggerConsolePanel.updating:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
private void print(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 2
start local 2 1: aload 2
aload 2
invokeinterface javax.swing.text.Document.getLength:()I
aload 1
aconst_null
invokeinterface javax.swing.text.Document.insertString:(ILjava/lang/String;Ljavax/swing/text/AttributeSet;)V
2: goto 5
3: StackMap locals: sun.jvm.hotspot.ui.DebuggerConsolePanel java.lang.String javax.swing.text.Document
StackMap stack: javax.swing.text.BadLocationException
astore 3
start local 3 4: aload 3
invokevirtual javax.swing.text.BadLocationException.printStackTrace:()V
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
0 6 1 s Ljava/lang/String;
1 6 2 d Ljavax/swing/text/Document;
4 5 3 e Ljavax/swing/text/BadLocationException;
Exception table:
from to target type
1 2 3 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
s
private void printPrompt();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.debugger:Lsun/jvm/hotspot/debugger/Debugger;
invokeinterface sun.jvm.hotspot.debugger.Debugger.getConsolePrompt:()Ljava/lang/String;
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.print:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
private boolean insertContains(javax.swing.event.DocumentEvent, char);
descriptor: (Ljavax/swing/event/DocumentEvent;C)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield sun.jvm.hotspot.ui.DebuggerConsolePanel.editor:Ljavax/swing/text/JTextComponent;
aload 1
invokeinterface javax.swing.event.DocumentEvent.getOffset:()I
aload 1
invokeinterface javax.swing.event.DocumentEvent.getLength:()I
invokevirtual javax.swing.text.JTextComponent.getText:(II)Ljava/lang/String;
astore 3
2: iconst_0
istore 4
start local 4 3: goto 7
4: StackMap locals: java.lang.String int
StackMap stack:
aload 3
iload 4
invokevirtual java.lang.String.charAt:(I)C
iload 2
if_icmpne 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 1
invokeinterface javax.swing.event.DocumentEvent.getLength:()I
if_icmplt 4
end local 4 8: goto 11
9: StackMap locals: sun.jvm.hotspot.ui.DebuggerConsolePanel javax.swing.event.DocumentEvent int java.lang.String
StackMap stack: javax.swing.text.BadLocationException
astore 4
start local 4 10: aload 4
invokevirtual javax.swing.text.BadLocationException.printStackTrace:()V
end local 4 11: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
0 12 1 e Ljavax/swing/event/DocumentEvent;
0 12 2 c C
1 12 3 s Ljava/lang/String;
3 8 4 i I
10 11 4 ex Ljavax/swing/text/BadLocationException;
Exception table:
from to target type
1 5 9 Class javax.swing.text.BadLocationException
6 8 9 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
e
c
private java.lang.String trimContinuations(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: goto 2
start local 2 1: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iload 2
iconst_2
iadd
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
end local 2 2: StackMap locals:
StackMap stack:
aload 1
ldc "\\\n"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
dup
istore 2
start local 2 3: ifge 1
4: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
0 5 1 text Ljava/lang/String;
1 2 2 i I
3 5 2 i I
MethodParameters:
Name Flags
text
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new javax.swing.JFrame
dup
invokespecial javax.swing.JFrame.<init>:()V
astore 1
start local 1 1: aload 1
invokevirtual javax.swing.JFrame.getContentPane:()Ljava/awt/Container;
new java.awt.BorderLayout
dup
invokespecial java.awt.BorderLayout.<init>:()V
invokevirtual java.awt.Container.setLayout:(Ljava/awt/LayoutManager;)V
2: new sun.jvm.hotspot.ui.DebuggerConsolePanel
dup
aconst_null
invokespecial sun.jvm.hotspot.ui.DebuggerConsolePanel.<init>:(Lsun/jvm/hotspot/debugger/Debugger;)V
astore 2
start local 2 3: aload 1
invokevirtual javax.swing.JFrame.getContentPane:()Ljava/awt/Container;
aload 2
ldc "Center"
invokevirtual java.awt.Container.add:(Ljava/awt/Component;Ljava/lang/Object;)V
4: aload 1
new sun.jvm.hotspot.ui.DebuggerConsolePanel$4
dup
invokespecial sun.jvm.hotspot.ui.DebuggerConsolePanel$4.<init>:()V
invokevirtual javax.swing.JFrame.addWindowListener:(Ljava/awt/event/WindowListener;)V
5: aload 1
sipush 500
sipush 500
invokevirtual javax.swing.JFrame.setSize:(II)V
6: aload 1
iconst_1
invokevirtual javax.swing.JFrame.setVisible:(Z)V
7: aload 2
invokevirtual sun.jvm.hotspot.ui.DebuggerConsolePanel.requestFocus:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 args [Ljava/lang/String;
1 9 1 frame Ljavax/swing/JFrame;
3 9 2 panel Lsun/jvm/hotspot/ui/DebuggerConsolePanel;
MethodParameters:
Name Flags
args
}
SourceFile: "DebuggerConsolePanel.java"
NestMembers:
sun.jvm.hotspot.ui.DebuggerConsolePanel$1 sun.jvm.hotspot.ui.DebuggerConsolePanel$1$1 sun.jvm.hotspot.ui.DebuggerConsolePanel$2 sun.jvm.hotspot.ui.DebuggerConsolePanel$3 sun.jvm.hotspot.ui.DebuggerConsolePanel$4
InnerClasses:
sun.jvm.hotspot.ui.DebuggerConsolePanel$1
sun.jvm.hotspot.ui.DebuggerConsolePanel$2
sun.jvm.hotspot.ui.DebuggerConsolePanel$3
sun.jvm.hotspot.ui.DebuggerConsolePanel$4