class jdk.editpad.EditPad implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.editpad.EditPad
super_class: java.lang.Object
{
private static final java.lang.String L10N_RB_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.editpad.resources.l10n"
private java.util.ResourceBundle rb;
descriptor: Ljava/util/ResourceBundle;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String windowLabel;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Consumer<java.lang.String> errorHandler;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;
private final java.lang.String initialText;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Runnable closeMark;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Consumer<java.lang.String> saveHandler;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;
void <init>(java.lang.String, java.util.function.Consumer<java.lang.String>, java.lang.String, java.lang.Runnable, java.util.function.Consumer<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/function/Consumer;Ljava/lang/String;Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
flags: (0x0000)
Code:
stack=2, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.editpad.EditPad.rb:Ljava/util/ResourceBundle;
2: aload 0
aload 1
putfield jdk.editpad.EditPad.windowLabel:Ljava/lang/String;
3: aload 0
aload 2
putfield jdk.editpad.EditPad.errorHandler:Ljava/util/function/Consumer;
4: aload 0
aload 3
putfield jdk.editpad.EditPad.initialText:Ljava/lang/String;
5: aload 0
aload 4
putfield jdk.editpad.EditPad.closeMark:Ljava/lang/Runnable;
6: aload 0
aload 5
putfield jdk.editpad.EditPad.saveHandler:Ljava/util/function/Consumer;
7: 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 8 0 this Ljdk/editpad/EditPad;
0 8 1 windowLabel Ljava/lang/String;
0 8 2 errorHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
0 8 3 initialText Ljava/lang/String;
0 8 4 closeMark Ljava/lang/Runnable;
0 8 5 saveHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
Signature: (Ljava/lang/String;Ljava/util/function/Consumer<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/Runnable;Ljava/util/function/Consumer<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
windowLabel
errorHandler
initialText
closeMark
saveHandler
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: new javax.swing.JFrame
dup
aload 0
getfield jdk.editpad.EditPad.windowLabel:Ljava/lang/String;
ifnonnull 2
1: aload 0
ldc "editpad.name"
invokevirtual jdk.editpad.EditPad.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
goto 3
2: StackMap locals: jdk.editpad.EditPad
StackMap stack: new 0 new 0
aload 0
getfield jdk.editpad.EditPad.windowLabel:Ljava/lang/String;
3: StackMap locals: jdk.editpad.EditPad
StackMap stack: new 0 new 0 java.lang.String
invokespecial javax.swing.JFrame.<init>:(Ljava/lang/String;)V
astore 1
start local 1 4: aload 0
aload 1
invokedynamic run(Ljdk/editpad/EditPad;Ljavax/swing/JFrame;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/editpad/EditPad.lambda$0(Ljavax/swing/JFrame;)V (7)
()V
astore 2
start local 2 5: aload 1
new jdk.editpad.EditPad$1
dup
aload 0
aload 2
invokespecial jdk.editpad.EditPad$1.<init>:(Ljdk/editpad/EditPad;Ljava/lang/Runnable;)V
invokevirtual javax.swing.JFrame.addWindowListener:(Ljava/awt/event/WindowListener;)V
6: aload 1
aconst_null
invokevirtual javax.swing.JFrame.setLocationRelativeTo:(Ljava/awt/Component;)V
7: aload 1
new java.awt.BorderLayout
dup
invokespecial java.awt.BorderLayout.<init>:()V
invokevirtual javax.swing.JFrame.setLayout:(Ljava/awt/LayoutManager;)V
8: new javax.swing.JTextArea
dup
aload 0
getfield jdk.editpad.EditPad.initialText:Ljava/lang/String;
invokespecial javax.swing.JTextArea.<init>:(Ljava/lang/String;)V
astore 3
start local 3 9: aload 3
new java.awt.Font
dup
ldc "monospaced"
iconst_0
bipush 13
invokespecial java.awt.Font.<init>:(Ljava/lang/String;II)V
invokevirtual javax.swing.JTextArea.setFont:(Ljava/awt/Font;)V
10: aload 1
new javax.swing.JScrollPane
dup
aload 3
invokespecial javax.swing.JScrollPane.<init>:(Ljava/awt/Component;)V
ldc "Center"
invokevirtual javax.swing.JFrame.add:(Ljava/awt/Component;Ljava/lang/Object;)V
11: aload 1
aload 0
aload 2
aload 3
invokevirtual jdk.editpad.EditPad.buttons:(Ljava/lang/Runnable;Ljavax/swing/JTextArea;)Ljavax/swing/JPanel;
ldc "South"
invokevirtual javax.swing.JFrame.add:(Ljava/awt/Component;Ljava/lang/Object;)V
12: aload 1
sipush 800
sipush 600
invokevirtual javax.swing.JFrame.setSize:(II)V
13: aload 1
iconst_1
invokevirtual javax.swing.JFrame.setVisible:(Z)V
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/editpad/EditPad;
4 15 1 jframe Ljavax/swing/JFrame;
5 15 2 closer Ljava/lang/Runnable;
9 15 3 textArea Ljavax/swing/JTextArea;
private javax.swing.JPanel buttons(java.lang.Runnable, javax.swing.JTextArea);
descriptor: (Ljava/lang/Runnable;Ljavax/swing/JTextArea;)Ljavax/swing/JPanel;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.awt.FlowLayout
dup
invokespecial java.awt.FlowLayout.<init>:()V
astore 3
start local 3 1: aload 3
bipush 35
invokevirtual java.awt.FlowLayout.setHgap:(I)V
2: new javax.swing.JPanel
dup
aload 3
invokespecial javax.swing.JPanel.<init>:(Ljava/awt/LayoutManager;)V
astore 4
start local 4 3: aload 0
aload 4
ldc "editpad.cancel"
bipush 67
aload 1
invokedynamic actionPerformed(Ljava/lang/Runnable;)Ljava/awt/event/ActionListener;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/awt/event/ActionEvent;)V
jdk/editpad/EditPad.lambda$1(Ljava/lang/Runnable;Ljava/awt/event/ActionEvent;)V (6)
(Ljava/awt/event/ActionEvent;)V
invokevirtual jdk.editpad.EditPad.addButton:(Ljavax/swing/JPanel;Ljava/lang/String;ILjava/awt/event/ActionListener;)V
4: aload 0
aload 4
ldc "editpad.accept"
bipush 65
aload 0
aload 2
invokedynamic actionPerformed(Ljdk/editpad/EditPad;Ljavax/swing/JTextArea;)Ljava/awt/event/ActionListener;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/awt/event/ActionEvent;)V
jdk/editpad/EditPad.lambda$2(Ljavax/swing/JTextArea;Ljava/awt/event/ActionEvent;)V (7)
(Ljava/awt/event/ActionEvent;)V
invokevirtual jdk.editpad.EditPad.addButton:(Ljavax/swing/JPanel;Ljava/lang/String;ILjava/awt/event/ActionListener;)V
5: aload 0
aload 4
ldc "editpad.exit"
bipush 88
aload 0
aload 2
aload 1
invokedynamic actionPerformed(Ljdk/editpad/EditPad;Ljavax/swing/JTextArea;Ljava/lang/Runnable;)Ljava/awt/event/ActionListener;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/awt/event/ActionEvent;)V
jdk/editpad/EditPad.lambda$3(Ljavax/swing/JTextArea;Ljava/lang/Runnable;Ljava/awt/event/ActionEvent;)V (7)
(Ljava/awt/event/ActionEvent;)V
invokevirtual jdk.editpad.EditPad.addButton:(Ljavax/swing/JPanel;Ljava/lang/String;ILjava/awt/event/ActionListener;)V
6: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/editpad/EditPad;
0 7 1 closer Ljava/lang/Runnable;
0 7 2 textArea Ljavax/swing/JTextArea;
1 7 3 flow Ljava/awt/FlowLayout;
3 7 4 buttons Ljavax/swing/JPanel;
MethodParameters:
Name Flags
closer
textArea
private void addButton(javax.swing.JPanel, java.lang.String, int, java.awt.event.ActionListener);
descriptor: (Ljavax/swing/JPanel;Ljava/lang/String;ILjava/awt/event/ActionListener;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new javax.swing.JButton
dup
aload 0
aload 2
invokevirtual jdk.editpad.EditPad.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial javax.swing.JButton.<init>:(Ljava/lang/String;)V
astore 5
start local 5 1: aload 5
iload 3
invokevirtual javax.swing.JButton.setMnemonic:(I)V
2: aload 1
aload 5
invokevirtual javax.swing.JPanel.add:(Ljava/awt/Component;)Ljava/awt/Component;
pop
3: aload 5
aload 4
invokevirtual javax.swing.JButton.addActionListener:(Ljava/awt/event/ActionListener;)V
4: 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 5 0 this Ljdk/editpad/EditPad;
0 5 1 buttons Ljavax/swing/JPanel;
0 5 2 rkey Ljava/lang/String;
0 5 3 mnemonic I
0 5 4 action Ljava/awt/event/ActionListener;
1 5 5 but Ljavax/swing/JButton;
MethodParameters:
Name Flags
buttons
rkey
mnemonic
action
private java.lang.String getResourceString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.editpad.EditPad.rb:Ljava/util/ResourceBundle;
ifnonnull 6
1: aload 0
ldc "jdk.editpad.resources.l10n"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putfield jdk.editpad.EditPad.rb:Ljava/util/ResourceBundle;
2: goto 6
StackMap locals:
StackMap stack: java.util.MissingResourceException
3: pop
4: aload 0
ldc "Cannot find ResourceBundle: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "jdk.editpad.resources.l10n"
aastore
invokevirtual jdk.editpad.EditPad.error:(Ljava/lang/String;[Ljava/lang/Object;)V
5: ldc ""
areturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.editpad.EditPad.rb:Ljava/util/ResourceBundle;
aload 1
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 7: goto 11
end local 2 StackMap locals:
StackMap stack: java.util.MissingResourceException
8: pop
9: aload 0
ldc "Missing resource: %s in %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
ldc "jdk.editpad.resources.l10n"
aastore
invokevirtual jdk.editpad.EditPad.error:(Ljava/lang/String;[Ljava/lang/Object;)V
10: ldc ""
areturn
start local 2 11: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/editpad/EditPad;
0 12 1 key Ljava/lang/String;
7 8 2 s Ljava/lang/String;
11 12 2 s Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.util.MissingResourceException
6 7 8 Class java.util.MissingResourceException
MethodParameters:
Name Flags
key
private void error(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.editpad.EditPad.errorHandler:Ljava/util/function/Consumer;
aload 1
aload 2
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/editpad/EditPad;
0 2 1 fmt Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
fmt
args
private void lambda$0(javax.swing.JFrame);
descriptor: (Ljavax/swing/JFrame;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 1
iconst_0
invokevirtual javax.swing.JFrame.setVisible:(Z)V
1: aload 1
invokevirtual javax.swing.JFrame.dispose:()V
2: aload 0
getfield jdk.editpad.EditPad.closeMark:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/editpad/EditPad;
private static void lambda$1(java.lang.Runnable, java.awt.event.ActionEvent);
descriptor: (Ljava/lang/Runnable;Ljava/awt/event/ActionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
invokeinterface java.lang.Runnable.run:()V
1: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 e Ljava/awt/event/ActionEvent;
private void lambda$2(javax.swing.JTextArea, java.awt.event.ActionEvent);
descriptor: (Ljavax/swing/JTextArea;Ljava/awt/event/ActionEvent;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
getfield jdk.editpad.EditPad.saveHandler:Ljava/util/function/Consumer;
aload 1
invokevirtual javax.swing.JTextArea.getText:()Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
1: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/editpad/EditPad;
0 2 2 e Ljava/awt/event/ActionEvent;
private void lambda$3(javax.swing.JTextArea, java.lang.Runnable, java.awt.event.ActionEvent);
descriptor: (Ljavax/swing/JTextArea;Ljava/lang/Runnable;Ljava/awt/event/ActionEvent;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 3 0: aload 0
getfield jdk.editpad.EditPad.saveHandler:Ljava/util/function/Consumer;
aload 1
invokevirtual javax.swing.JTextArea.getText:()Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
1: aload 2
invokeinterface java.lang.Runnable.run:()V
2: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/editpad/EditPad;
0 3 3 e Ljava/awt/event/ActionEvent;
}
SourceFile: "EditPad.java"
NestMembers:
jdk.editpad.EditPad$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.editpad.EditPad$1