class javax.swing.text.DefaultEditorKit$DeleteWordAction extends javax.swing.text.TextAction
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.DefaultEditorKit$DeleteWordAction
super_class: javax.swing.text.TextAction
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/swing/text/DefaultEditorKit;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic javax.swing.text.DefaultEditorKit$DeleteWordAction.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.TextAction.<init>:(Ljava/lang/String;)V
1: getstatic javax.swing.text.DefaultEditorKit$DeleteWordAction.$assertionsDisabled:Z
ifne 3
aload 1
ldc "delete-previous-word"
if_acmpeq 3
2: aload 1
ldc "delete-next-word"
if_acmpeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: javax.swing.text.DefaultEditorKit$DeleteWordAction java.lang.String
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/DefaultEditorKit$DeleteWordAction;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.text.DefaultEditorKit$DeleteWordAction.getTextComponent:(Ljava/awt/event/ActionEvent;)Ljavax/swing/text/JTextComponent;
astore 2
start local 2 1: aload 2
ifnull 36
aload 1
ifnull 36
2: aload 2
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
ifeq 3
aload 2
invokevirtual javax.swing.text.JTextComponent.isEnabled:()Z
ifne 5
3: StackMap locals: javax.swing.text.JTextComponent
StackMap stack:
invokestatic javax.swing.UIManager.getLookAndFeel:()Ljavax/swing/LookAndFeel;
aload 2
invokevirtual javax.swing.LookAndFeel.provideErrorFeedback:(Ljava/awt/Component;)V
4: return
5: StackMap locals:
StackMap stack:
iconst_1
istore 3
start local 3 6: aload 2
invokevirtual javax.swing.text.JTextComponent.getSelectionStart:()I
istore 4
start local 4 7: aload 2
iload 4
invokestatic javax.swing.text.Utilities.getParagraphElement:(Ljavax/swing/text/JTextComponent;I)Ljavax/swing/text/Element;
8: astore 5
start local 5 9: ldc "delete-next-word"
aload 0
ldc "Name"
invokevirtual javax.swing.text.DefaultEditorKit$DeleteWordAction.getValue:(Ljava/lang/String;)Ljava/lang/Object;
if_acmpne 19
10: aload 2
aload 5
iload 4
iconst_0
invokestatic javax.swing.text.Utilities.getNextWordInParagraph:(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/Element;IZ)I
11: istore 6
start local 6 12: iload 6
iconst_m1
if_icmpne 27
13: aload 5
invokeinterface javax.swing.text.Element.getEndOffset:()I
istore 7
start local 7 14: iload 4
iload 7
iconst_1
isub
if_icmpne 17
15: iload 7
istore 6
16: goto 27
17: StackMap locals: javax.swing.text.DefaultEditorKit$DeleteWordAction java.awt.event.ActionEvent javax.swing.text.JTextComponent int int javax.swing.text.Element int int
StackMap stack:
iload 7
iconst_1
isub
istore 6
end local 7 18: goto 27
end local 6 19: StackMap locals:
StackMap stack:
aload 2
aload 5
iload 4
invokestatic javax.swing.text.Utilities.getPrevWordInParagraph:(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/Element;I)I
20: istore 6
start local 6 21: iload 6
iconst_m1
if_icmpne 27
22: aload 5
invokeinterface javax.swing.text.Element.getStartOffset:()I
istore 7
start local 7 23: iload 4
iload 7
if_icmpne 26
24: iload 7
iconst_1
isub
istore 6
25: goto 27
26: StackMap locals: int int
StackMap stack:
iload 7
istore 6
end local 7 27: StackMap locals:
StackMap stack:
iload 4
iload 6
invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 28: iload 6
iload 4
isub
invokestatic java.lang.Math.abs:(I)I
istore 8
start local 8 29: iload 7
iflt 34
30: aload 2
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
iload 7
iload 8
invokeinterface javax.swing.text.Document.remove:(II)V
31: iconst_0
istore 3
end local 8 end local 7 end local 6 end local 5 end local 4 32: goto 34
StackMap locals: javax.swing.text.DefaultEditorKit$DeleteWordAction java.awt.event.ActionEvent javax.swing.text.JTextComponent int
StackMap stack: javax.swing.text.BadLocationException
33: pop
34: StackMap locals:
StackMap stack:
iload 3
ifeq 36
35: invokestatic javax.swing.UIManager.getLookAndFeel:()Ljavax/swing/LookAndFeel;
aload 2
invokevirtual javax.swing.LookAndFeel.provideErrorFeedback:(Ljava/awt/Component;)V
end local 3 36: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljavax/swing/text/DefaultEditorKit$DeleteWordAction;
0 37 1 e Ljava/awt/event/ActionEvent;
1 37 2 target Ljavax/swing/text/JTextComponent;
6 36 3 beep Z
7 32 4 start I
9 32 5 line Ljavax/swing/text/Element;
12 19 6 end I
21 32 6 end I
14 18 7 endOfLine I
23 27 7 startOfLine I
28 32 7 offs I
29 32 8 len I
Exception table:
from to target type
6 32 33 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
e
}
SourceFile: "DefaultEditorKit.java"
NestHost: javax.swing.text.DefaultEditorKit
InnerClasses:
DeleteWordAction = javax.swing.text.DefaultEditorKit$DeleteWordAction of javax.swing.text.DefaultEditorKit