class javax.swing.text.html.HTMLEditorKit$NavigateLinkAction extends javax.swing.text.TextAction implements javax.swing.event.CaretListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.html.HTMLEditorKit$NavigateLinkAction
super_class: javax.swing.text.TextAction
{
private static final javax.swing.text.html.HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter focusPainter;
descriptor: Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final boolean focusBack;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new javax.swing.text.html.HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter
dup
aconst_null
invokespecial javax.swing.text.html.HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter.<init>:(Ljava/awt/Color;)V
1: putstatic javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.focusPainter:Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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: aload 0
ldc "previous-link-action"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.focusBack:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction;
0 3 1 actionName Ljava/lang/String;
MethodParameters:
Name Flags
actionName
public void caretUpdate(javax.swing.event.CaretEvent);
descriptor: (Ljavax/swing/event/CaretEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.event.CaretEvent.getSource:()Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof javax.swing.text.JTextComponent
ifeq 11
2: aload 2
checkcast javax.swing.text.JTextComponent
astore 3
start local 3 3: aload 0
aload 3
invokevirtual javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.getHTMLEditorKit:(Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/html/HTMLEditorKit;
astore 4
start local 4 4: aload 4
ifnull 11
aload 4
getfield javax.swing.text.html.HTMLEditorKit.foundLink:Z
ifeq 11
5: aload 4
iconst_0
putfield javax.swing.text.html.HTMLEditorKit.foundLink:Z
6: aload 3
invokevirtual javax.swing.text.JTextComponent.getAccessibleContext:()Ljavax/accessibility/AccessibleContext;
7: ldc "AccessibleHypertextOffset"
8: aload 4
getfield javax.swing.text.html.HTMLEditorKit.prevHypertextOffset:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
9: aload 1
invokevirtual javax.swing.event.CaretEvent.getDot:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
10: invokevirtual javax.accessibility.AccessibleContext.firePropertyChange:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 end local 3 11: StackMap locals: java.lang.Object
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction;
0 12 1 e Ljavax/swing/event/CaretEvent;
1 12 2 src Ljava/lang/Object;
3 11 3 comp Ljavax/swing/text/JTextComponent;
4 11 4 kit Ljavax/swing/text/html/HTMLEditorKit;
MethodParameters:
Name Flags
e
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.getTextComponent:(Ljava/awt/event/ActionEvent;)Ljavax/swing/text/JTextComponent;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
ifeq 3
2: StackMap locals: javax.swing.text.JTextComponent
StackMap stack:
return
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 3
start local 3 4: aload 0
aload 2
invokevirtual javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.getHTMLEditorKit:(Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/html/HTMLEditorKit;
astore 4
start local 4 5: aload 3
ifnull 6
aload 4
ifnonnull 7
6: StackMap locals: javax.swing.text.Document javax.swing.text.html.HTMLEditorKit
StackMap stack:
return
7: StackMap locals:
StackMap stack:
new javax.swing.text.ElementIterator
dup
aload 3
invokespecial javax.swing.text.ElementIterator.<init>:(Ljavax/swing/text/Document;)V
astore 5
start local 5 8: aload 2
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
istore 6
start local 6 9: iconst_m1
istore 7
start local 7 10: iconst_m1
istore 8
start local 8 11: goto 38
start local 9 12: StackMap locals: javax.swing.text.html.HTMLEditorKit$NavigateLinkAction java.awt.event.ActionEvent javax.swing.text.JTextComponent javax.swing.text.Document javax.swing.text.html.HTMLEditorKit javax.swing.text.ElementIterator int int int javax.swing.text.Element
StackMap stack:
aload 9
invokeinterface javax.swing.text.Element.getName:()Ljava/lang/String;
astore 10
start local 10 13: aload 9
invokeinterface javax.swing.text.Element.getAttributes:()Ljavax/swing/text/AttributeSet;
astore 11
start local 11 14: aload 11
getstatic javax.swing.text.html.HTML$Attribute.HREF:Ljavax/swing/text/html/HTML$Attribute;
invokestatic javax.swing.text.html.HTMLEditorKit.getAttrValue:(Ljavax/swing/text/AttributeSet;Ljavax/swing/text/html/HTML$Attribute;)Ljava/lang/Object;
astore 12
start local 12 15: aload 10
getstatic javax.swing.text.html.HTML$Tag.OBJECT:Ljavax/swing/text/html/HTML$Tag;
invokevirtual javax.swing.text.html.HTML$Tag.toString:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
aload 12
ifnonnull 17
16: goto 38
17: StackMap locals: java.lang.String javax.swing.text.AttributeSet java.lang.Object
StackMap stack:
aload 9
invokeinterface javax.swing.text.Element.getStartOffset:()I
istore 13
start local 13 18: aload 0
getfield javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.focusBack:Z
ifeq 28
19: iload 13
iload 6
if_icmplt 36
20: iload 7
iflt 36
21: aload 4
iconst_1
putfield javax.swing.text.html.HTMLEditorKit.foundLink:Z
22: aload 2
iload 7
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
23: aload 0
aload 2
aload 4
iload 7
24: iload 8
25: invokevirtual javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.moveCaretPosition:(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/html/HTMLEditorKit;II)V
26: aload 4
iload 7
putfield javax.swing.text.html.HTMLEditorKit.prevHypertextOffset:I
27: return
28: StackMap locals: int
StackMap stack:
iload 13
iload 6
if_icmple 36
29: aload 4
iconst_1
putfield javax.swing.text.html.HTMLEditorKit.foundLink:Z
30: aload 2
iload 13
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
31: aload 0
aload 2
aload 4
iload 13
32: aload 9
invokeinterface javax.swing.text.Element.getEndOffset:()I
33: invokevirtual javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.moveCaretPosition:(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/html/HTMLEditorKit;II)V
34: aload 4
iload 13
putfield javax.swing.text.html.HTMLEditorKit.prevHypertextOffset:I
35: return
36: StackMap locals:
StackMap stack:
aload 9
invokeinterface javax.swing.text.Element.getStartOffset:()I
istore 7
37: aload 9
invokeinterface javax.swing.text.Element.getEndOffset:()I
istore 8
end local 13 end local 12 end local 11 end local 10 end local 9 38: StackMap locals: javax.swing.text.html.HTMLEditorKit$NavigateLinkAction java.awt.event.ActionEvent javax.swing.text.JTextComponent javax.swing.text.Document javax.swing.text.html.HTMLEditorKit javax.swing.text.ElementIterator int int int
StackMap stack:
aload 5
invokevirtual javax.swing.text.ElementIterator.next:()Ljavax/swing/text/Element;
dup
astore 9
start local 9 39: ifnonnull 12
40: aload 0
getfield javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.focusBack:Z
ifeq 45
iload 7
iflt 45
41: aload 4
iconst_1
putfield javax.swing.text.html.HTMLEditorKit.foundLink:Z
42: aload 2
iload 7
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
43: aload 0
aload 2
aload 4
iload 7
iload 8
invokevirtual javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.moveCaretPosition:(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/html/HTMLEditorKit;II)V
44: aload 4
iload 7
putfield javax.swing.text.html.HTMLEditorKit.prevHypertextOffset:I
45: StackMap locals: javax.swing.text.Element
StackMap stack:
return
end local 9 end local 8 end local 7 end local 6 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 46 0 this Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction;
0 46 1 e Ljava/awt/event/ActionEvent;
1 46 2 comp Ljavax/swing/text/JTextComponent;
4 46 3 doc Ljavax/swing/text/Document;
5 46 4 kit Ljavax/swing/text/html/HTMLEditorKit;
8 46 5 ei Ljavax/swing/text/ElementIterator;
9 46 6 currentOffset I
10 46 7 prevStartOffset I
11 46 8 prevEndOffset I
12 38 9 nextElement Ljavax/swing/text/Element;
39 46 9 nextElement Ljavax/swing/text/Element;
13 38 10 name Ljava/lang/String;
14 38 11 attr Ljavax/swing/text/AttributeSet;
15 38 12 href Ljava/lang/Object;
18 38 13 elementOffset I
MethodParameters:
Name Flags
e
private void moveCaretPosition(javax.swing.text.JTextComponent, javax.swing.text.html.HTMLEditorKit, int, int);
descriptor: (Ljavax/swing/text/JTextComponent;Ljavax/swing/text/html/HTMLEditorKit;II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual javax.swing.text.JTextComponent.getHighlighter:()Ljavax/swing/text/Highlighter;
astore 5
start local 5 1: aload 5
ifnull 12
2: iload 4
iload 3
invokestatic java.lang.Math.min:(II)I
istore 6
start local 6 3: iload 4
iload 3
invokestatic java.lang.Math.max:(II)I
istore 7
start local 7 4: aload 2
getfield javax.swing.text.html.HTMLEditorKit.linkNavigationTag:Ljava/lang/Object;
ifnull 7
5: aload 5
aload 2
getfield javax.swing.text.html.HTMLEditorKit.linkNavigationTag:Ljava/lang/Object;
iload 6
iload 7
invokeinterface javax.swing.text.Highlighter.changeHighlight:(Ljava/lang/Object;II)V
6: goto 12
7: StackMap locals: javax.swing.text.Highlighter int int
StackMap stack:
aload 2
8: aload 5
iload 6
iload 7
getstatic javax.swing.text.html.HTMLEditorKit$NavigateLinkAction.focusPainter:Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter;
invokeinterface javax.swing.text.Highlighter.addHighlight:(IILjavax/swing/text/Highlighter$HighlightPainter;)Ljava/lang/Object;
9: putfield javax.swing.text.html.HTMLEditorKit.linkNavigationTag:Ljava/lang/Object;
10: goto 12
StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
11: pop
end local 7 end local 6 12: StackMap locals:
StackMap stack:
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 13 0 this Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction;
0 13 1 comp Ljavax/swing/text/JTextComponent;
0 13 2 kit Ljavax/swing/text/html/HTMLEditorKit;
0 13 3 mark I
0 13 4 dot I
1 13 5 h Ljavax/swing/text/Highlighter;
3 12 6 p0 I
4 12 7 p1 I
Exception table:
from to target type
4 10 11 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
comp
kit
mark
dot
private javax.swing.text.html.HTMLEditorKit getHTMLEditorKit(javax.swing.text.JTextComponent);
descriptor: (Ljavax/swing/text/JTextComponent;)Ljavax/swing/text/html/HTMLEditorKit;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.swing.JEditorPane
ifeq 4
1: aload 1
checkcast javax.swing.JEditorPane
invokevirtual javax.swing.JEditorPane.getEditorKit:()Ljavax/swing/text/EditorKit;
astore 2
start local 2 2: aload 2
instanceof javax.swing.text.html.HTMLEditorKit
ifeq 4
3: aload 2
checkcast javax.swing.text.html.HTMLEditorKit
areturn
end local 2 4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/html/HTMLEditorKit$NavigateLinkAction;
0 5 1 comp Ljavax/swing/text/JTextComponent;
2 4 2 kit Ljavax/swing/text/EditorKit;
MethodParameters:
Name Flags
comp
}
SourceFile: "HTMLEditorKit.java"
NestHost: javax.swing.text.html.HTMLEditorKit
InnerClasses:
public abstract HighlightPainter = javax.swing.text.Highlighter$HighlightPainter of javax.swing.text.Highlighter
public final Attribute = javax.swing.text.html.HTML$Attribute of javax.swing.text.html.HTML
public Tag = javax.swing.text.html.HTML$Tag of javax.swing.text.html.HTML
NavigateLinkAction = javax.swing.text.html.HTMLEditorKit$NavigateLinkAction of javax.swing.text.html.HTMLEditorKit
FocusHighlightPainter = javax.swing.text.html.HTMLEditorKit$NavigateLinkAction$FocusHighlightPainter of javax.swing.text.html.HTMLEditorKit$NavigateLinkAction