class javax.swing.text.DefaultEditorKit$PageAction extends javax.swing.text.TextAction
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.DefaultEditorKit$PageAction
super_class: javax.swing.text.TextAction
{
private boolean select;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean left;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, boolean, boolean);
descriptor: (Ljava/lang/String;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial javax.swing.text.TextAction.<init>:(Ljava/lang/String;)V
1: aload 0
iload 3
putfield javax.swing.text.DefaultEditorKit$PageAction.select:Z
2: aload 0
iload 2
putfield javax.swing.text.DefaultEditorKit$PageAction.left:Z
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/DefaultEditorKit$PageAction;
0 4 1 nm Ljava/lang/String;
0 4 2 left Z
0 4 3 select Z
MethodParameters:
Name Flags
nm
left
select
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.text.DefaultEditorKit$PageAction.getTextComponent:(Ljava/awt/event/ActionEvent;)Ljavax/swing/text/JTextComponent;
astore 2
start local 2 1: aload 2
ifnull 30
2: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 4
start local 4 3: aload 2
aload 4
invokevirtual javax.swing.text.JTextComponent.computeVisibleRect:(Ljava/awt/Rectangle;)V
4: aload 0
getfield javax.swing.text.DefaultEditorKit$PageAction.left:Z
ifeq 7
5: aload 4
iconst_0
aload 4
getfield java.awt.Rectangle.x:I
aload 4
getfield java.awt.Rectangle.width:I
isub
invokestatic java.lang.Math.max:(II)I
putfield java.awt.Rectangle.x:I
6: goto 8
7: StackMap locals: javax.swing.text.DefaultEditorKit$PageAction java.awt.event.ActionEvent javax.swing.text.JTextComponent top java.awt.Rectangle
StackMap stack:
aload 4
dup
getfield java.awt.Rectangle.x:I
aload 4
getfield java.awt.Rectangle.width:I
iadd
putfield java.awt.Rectangle.x:I
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
istore 3
start local 3 9: iload 3
iconst_m1
if_icmpeq 30
10: aload 0
getfield javax.swing.text.DefaultEditorKit$PageAction.left:Z
ifeq 15
11: aload 2
12: new java.awt.Point
dup
aload 4
getfield java.awt.Rectangle.x:I
aload 4
getfield java.awt.Rectangle.y:I
invokespecial java.awt.Point.<init>:(II)V
13: invokevirtual javax.swing.text.JTextComponent.viewToModel:(Ljava/awt/Point;)I
istore 3
14: goto 20
15: StackMap locals: javax.swing.text.DefaultEditorKit$PageAction java.awt.event.ActionEvent javax.swing.text.JTextComponent int java.awt.Rectangle
StackMap stack:
aload 2
16: new java.awt.Point
dup
aload 4
getfield java.awt.Rectangle.x:I
aload 4
getfield java.awt.Rectangle.width:I
iadd
iconst_1
isub
17: aload 4
getfield java.awt.Rectangle.y:I
aload 4
getfield java.awt.Rectangle.height:I
iadd
iconst_1
isub
18: invokespecial java.awt.Point.<init>:(II)V
19: invokevirtual javax.swing.text.JTextComponent.viewToModel:(Ljava/awt/Point;)I
istore 3
20: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 5
start local 5 21: iload 3
ifeq 25
22: iload 3
aload 5
invokeinterface javax.swing.text.Document.getLength:()I
iconst_1
isub
if_icmple 25
23: aload 5
invokeinterface javax.swing.text.Document.getLength:()I
iconst_1
isub
istore 3
24: goto 27
25: StackMap locals: javax.swing.text.Document
StackMap stack:
iload 3
ifge 27
26: iconst_0
istore 3
27: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.DefaultEditorKit$PageAction.select:Z
ifeq 29
28: aload 2
iload 3
invokevirtual javax.swing.text.JTextComponent.moveCaretPosition:(I)V
goto 30
29: StackMap locals:
StackMap stack:
aload 2
iload 3
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
end local 5 end local 4 end local 3 30: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Ljavax/swing/text/DefaultEditorKit$PageAction;
0 31 1 e Ljava/awt/event/ActionEvent;
1 31 2 target Ljavax/swing/text/JTextComponent;
9 30 3 selectedIndex I
3 30 4 visible Ljava/awt/Rectangle;
21 30 5 doc Ljavax/swing/text/Document;
MethodParameters:
Name Flags
e
}
SourceFile: "DefaultEditorKit.java"
NestHost: javax.swing.text.DefaultEditorKit
InnerClasses:
PageAction = javax.swing.text.DefaultEditorKit$PageAction of javax.swing.text.DefaultEditorKit