public class sun.jvm.hotspot.ui.CommandProcessorPanel extends javax.swing.JPanel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.ui.CommandProcessorPanel
super_class: javax.swing.JPanel
{
private sun.jvm.hotspot.CommandProcessor commands;
descriptor: Lsun/jvm/hotspot/CommandProcessor;
flags: (0x0002) ACC_PRIVATE
private javax.swing.JTextArea editor;
descriptor: Ljavax/swing/JTextArea;
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
java.io.ByteArrayOutputStream baos;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0000)
public void <init>(sun.jvm.hotspot.CommandProcessor);
descriptor: (Lsun/jvm/hotspot/CommandProcessor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.swing.JPanel.<init>:()V
1: aload 0
new java.io.ByteArrayOutputStream
dup
sipush 10240
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
putfield sun.jvm.hotspot.ui.CommandProcessorPanel.baos:Ljava/io/ByteArrayOutputStream;
2: aload 0
aload 1
putfield sun.jvm.hotspot.ui.CommandProcessorPanel.commands:Lsun/jvm/hotspot/CommandProcessor;
3: aload 0
new java.awt.BorderLayout
dup
invokespecial java.awt.BorderLayout.<init>:()V
invokevirtual sun.jvm.hotspot.ui.CommandProcessorPanel.setLayout:(Ljava/awt/LayoutManager;)V
4: aload 0
new javax.swing.JTextArea
dup
invokespecial javax.swing.JTextArea.<init>:()V
putfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
5: aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
new sun.jvm.hotspot.ui.EditableAtEndDocument
dup
invokespecial sun.jvm.hotspot.ui.EditableAtEndDocument.<init>:()V
invokevirtual javax.swing.JTextArea.setDocument:(Ljavax/swing/text/Document;)V
6: aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
ldc "Courier"
invokestatic sun.jvm.hotspot.ui.GraphicsUtilities.lookupFont:(Ljava/lang/String;)Ljava/awt/Font;
invokevirtual javax.swing.JTextArea.setFont:(Ljava/awt/Font;)V
7: new javax.swing.JScrollPane
dup
invokespecial javax.swing.JScrollPane.<init>:()V
astore 2
start local 2 8: aload 2
invokevirtual javax.swing.JScrollPane.getViewport:()Ljavax/swing/JViewport;
aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JViewport.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
9: aload 0
aload 2
ldc "Center"
invokevirtual sun.jvm.hotspot.ui.CommandProcessorPanel.add:(Ljava/awt/Component;Ljava/lang/Object;)V
10: new java.io.PrintStream
dup
aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.baos:Ljava/io/ByteArrayOutputStream;
iconst_1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;Z)V
astore 3
start local 3 11: aload 1
aload 3
invokevirtual sun.jvm.hotspot.CommandProcessor.setOutput:(Ljava/io/PrintStream;)V
12: aload 1
aload 3
invokevirtual sun.jvm.hotspot.CommandProcessor.setErr:(Ljava/io/PrintStream;)V
13: aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JTextArea.getDocument:()Ljavax/swing/text/Document;
new sun.jvm.hotspot.ui.CommandProcessorPanel$1
dup
aload 0
invokespecial sun.jvm.hotspot.ui.CommandProcessorPanel$1.<init>:(Lsun/jvm/hotspot/ui/CommandProcessorPanel;)V
invokeinterface javax.swing.text.Document.addDocumentListener:(Ljavax/swing/event/DocumentListener;)V
14: aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
new sun.jvm.hotspot.ui.CommandProcessorPanel$2
dup
aload 0
invokespecial sun.jvm.hotspot.ui.CommandProcessorPanel$2.<init>:(Lsun/jvm/hotspot/ui/CommandProcessorPanel;)V
invokevirtual javax.swing.JTextArea.addCaretListener:(Ljavax/swing/event/CaretListener;)V
15: invokestatic javax.swing.Box.createHorizontalBox:()Ljavax/swing/Box;
astore 4
start local 4 16: aload 4
invokestatic javax.swing.Box.createGlue:()Ljava/awt/Component;
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
17: new javax.swing.JButton
dup
ldc "Clear Saved Text"
invokespecial javax.swing.JButton.<init>:(Ljava/lang/String;)V
astore 5
start local 5 18: aload 5
new sun.jvm.hotspot.ui.CommandProcessorPanel$3
dup
aload 0
invokespecial sun.jvm.hotspot.ui.CommandProcessorPanel$3.<init>:(Lsun/jvm/hotspot/ui/CommandProcessorPanel;)V
invokevirtual javax.swing.JButton.addActionListener:(Ljava/awt/event/ActionListener;)V
19: aload 4
aload 5
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
20: aload 4
invokestatic javax.swing.Box.createGlue:()Ljava/awt/Component;
invokevirtual javax.swing.Box.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
21: aload 0
aload 4
ldc "South"
invokevirtual sun.jvm.hotspot.ui.CommandProcessorPanel.add:(Ljava/awt/Component;Ljava/lang/Object;)V
22: aload 0
invokevirtual sun.jvm.hotspot.ui.CommandProcessorPanel.clear:()V
23: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/jvm/hotspot/ui/CommandProcessorPanel;
0 24 1 cp Lsun/jvm/hotspot/CommandProcessor;
8 24 2 scroller Ljavax/swing/JScrollPane;
11 24 3 o Ljava/io/PrintStream;
16 24 4 hbox Ljavax/swing/Box;
18 24 5 button Ljavax/swing/JButton;
MethodParameters:
Name Flags
cp
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.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JTextArea.requestFocus:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/CommandProcessorPanel;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JTextArea.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
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.commands:Lsun/jvm/hotspot/CommandProcessor;
ldc ""
iconst_0
invokevirtual sun.jvm.hotspot.CommandProcessor.executeCommand:(Ljava/lang/String;Z)V
3: aload 0
invokevirtual sun.jvm.hotspot.ui.CommandProcessorPanel.setMark:()V
4: aload 0
getfield sun.jvm.hotspot.ui.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JTextArea.requestFocus:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/jvm/hotspot/ui/CommandProcessorPanel;
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.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JTextArea.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/CommandProcessorPanel;
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.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
invokevirtual javax.swing.JTextArea.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.CommandProcessorPanel
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/CommandProcessorPanel;
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.CommandProcessorPanel.updating:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/CommandProcessorPanel;
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.CommandProcessorPanel.updating:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/ui/CommandProcessorPanel;
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.CommandProcessorPanel.editor:Ljavax/swing/JTextArea;
aload 1
invokeinterface javax.swing.event.DocumentEvent.getOffset:()I
aload 1
invokeinterface javax.swing.event.DocumentEvent.getLength:()I
invokevirtual javax.swing.JTextArea.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.CommandProcessorPanel 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/CommandProcessorPanel;
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/CommandProcessorPanel;
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.CommandProcessorPanel
dup
aconst_null
invokespecial sun.jvm.hotspot.ui.CommandProcessorPanel.<init>:(Lsun/jvm/hotspot/CommandProcessor;)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.CommandProcessorPanel$4
dup
invokespecial sun.jvm.hotspot.ui.CommandProcessorPanel$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.CommandProcessorPanel.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/CommandProcessorPanel;
MethodParameters:
Name Flags
args
}
SourceFile: "CommandProcessorPanel.java"
NestMembers:
sun.jvm.hotspot.ui.CommandProcessorPanel$1 sun.jvm.hotspot.ui.CommandProcessorPanel$1$1 sun.jvm.hotspot.ui.CommandProcessorPanel$2 sun.jvm.hotspot.ui.CommandProcessorPanel$3 sun.jvm.hotspot.ui.CommandProcessorPanel$4
InnerClasses:
sun.jvm.hotspot.ui.CommandProcessorPanel$1
sun.jvm.hotspot.ui.CommandProcessorPanel$2
sun.jvm.hotspot.ui.CommandProcessorPanel$3
sun.jvm.hotspot.ui.CommandProcessorPanel$4