public class com.apple.laf.AquaCaret extends javax.swing.text.DefaultCaret implements javax.swing.plaf.UIResource, java.beans.PropertyChangeListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.apple.laf.AquaCaret
super_class: javax.swing.text.DefaultCaret
{
private boolean isMultiLineEditor;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean mFocused;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean fPainting;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean shouldSelectAllOnFocus;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.text.DefaultCaret.<init>:()V
1: aload 0
iconst_0
putfield com.apple.laf.AquaCaret.mFocused:Z
2: aload 0
iconst_0
putfield com.apple.laf.AquaCaret.fPainting:Z
3: aload 0
iconst_1
putfield com.apple.laf.AquaCaret.shouldSelectAllOnFocus:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/apple/laf/AquaCaret;
public void install(javax.swing.text.JTextComponent);
descriptor: (Ljavax/swing/text/JTextComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.install:(Ljavax/swing/text/JTextComponent;)V
1: aload 0
aload 1
instanceof javax.swing.JTextArea
ifne 2
aload 1
instanceof javax.swing.JEditorPane
ifne 2
iconst_0
goto 3
StackMap locals:
StackMap stack: com.apple.laf.AquaCaret
2: iconst_1
StackMap locals: com.apple.laf.AquaCaret javax.swing.text.JTextComponent
StackMap stack: com.apple.laf.AquaCaret int
3: putfield com.apple.laf.AquaCaret.isMultiLineEditor:Z
4: aload 1
aload 0
invokevirtual javax.swing.text.JTextComponent.addPropertyChangeListener:(Ljava/beans/PropertyChangeListener;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/apple/laf/AquaCaret;
0 6 1 c Ljavax/swing/text/JTextComponent;
MethodParameters:
Name Flags
c final
public void deinstall(javax.swing.text.JTextComponent);
descriptor: (Ljavax/swing/text/JTextComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual javax.swing.text.JTextComponent.removePropertyChangeListener:(Ljava/beans/PropertyChangeListener;)V
1: aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.deinstall:(Ljavax/swing/text/JTextComponent;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/apple/laf/AquaCaret;
0 3 1 c Ljavax/swing/text/JTextComponent;
MethodParameters:
Name Flags
c final
protected javax.swing.text.Highlighter$HighlightPainter getSelectionPainter();
descriptor: ()Ljavax/swing/text/Highlighter$HighlightPainter;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.apple.laf.AquaHighlighter.getInstance:()Ljavax/swing/text/LayeredHighlighter$LayerPainter;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/apple/laf/AquaCaret;
public void setVisible(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 3
aload 0
invokevirtual com.apple.laf.AquaCaret.getDot:()I
aload 0
invokevirtual com.apple.laf.AquaCaret.getMark:()I
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1
3: StackMap locals:
StackMap stack:
aload 0
iload 1
invokespecial javax.swing.text.DefaultCaret.setVisible:(Z)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/apple/laf/AquaCaret;
0 5 1 e Z
MethodParameters:
Name Flags
e
protected void fireStateChanged();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.laf.AquaCaret.mFocused:Z
ifeq 1
aload 0
aload 0
invokevirtual com.apple.laf.AquaCaret.getComponent:()Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
invokevirtual com.apple.laf.AquaCaret.setVisible:(Z)V
1: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.swing.text.DefaultCaret.fireStateChanged:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/apple/laf/AquaCaret;
public void propertyChange(java.beans.PropertyChangeEvent);
descriptor: (Ljava/beans/PropertyChangeEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.beans.PropertyChangeEvent.getPropertyName:()Ljava/lang/String;
astore 2
start local 2 1: ldc "Frame.active"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
2: aload 1
invokevirtual java.beans.PropertyChangeEvent.getSource:()Ljava/lang/Object;
checkcast javax.swing.text.JTextComponent
astore 3
start local 3 3: aload 1
invokevirtual java.beans.PropertyChangeEvent.getNewValue:()Ljava/lang/Object;
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
if_acmpne 6
4: aload 0
aload 3
invokevirtual javax.swing.text.JTextComponent.hasFocus:()Z
invokevirtual com.apple.laf.AquaCaret.setVisible:(Z)V
5: goto 7
6: StackMap locals: java.lang.String javax.swing.text.JTextComponent
StackMap stack:
aload 0
iconst_0
invokevirtual com.apple.laf.AquaCaret.setVisible:(Z)V
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.apple.laf.AquaCaret.getDot:()I
aload 0
invokevirtual com.apple.laf.AquaCaret.getMark:()I
if_icmpeq 8
aload 3
invokevirtual javax.swing.text.JTextComponent.getUI:()Ljavax/swing/plaf/TextUI;
aload 3
aload 0
invokevirtual com.apple.laf.AquaCaret.getDot:()I
aload 0
invokevirtual com.apple.laf.AquaCaret.getMark:()I
invokevirtual javax.swing.plaf.TextUI.damageRange:(Ljavax/swing/text/JTextComponent;II)V
end local 3 8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/apple/laf/AquaCaret;
0 9 1 evt Ljava/beans/PropertyChangeEvent;
1 9 2 propertyName Ljava/lang/String;
3 8 3 comp Ljavax/swing/text/JTextComponent;
MethodParameters:
Name Flags
evt final
public void focusGained(java.awt.event.FocusEvent);
descriptor: (Ljava/awt/event/FocusEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.apple.laf.AquaCaret.getComponent:()Ljavax/swing/text/JTextComponent;
astore 2
start local 2 1: aload 2
invokevirtual javax.swing.text.JTextComponent.isEnabled:()Z
ifeq 2
aload 2
invokevirtual javax.swing.text.JTextComponent.isEditable:()Z
ifne 4
2: StackMap locals: javax.swing.text.JTextComponent
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.focusGained:(Ljava/awt/event/FocusEvent;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.apple.laf.AquaCaret.mFocused:Z
5: aload 0
getfield com.apple.laf.AquaCaret.shouldSelectAllOnFocus:Z
ifne 9
6: aload 0
iconst_1
putfield com.apple.laf.AquaCaret.shouldSelectAllOnFocus:Z
7: aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.focusGained:(Ljava/awt/event/FocusEvent;)V
8: return
9: StackMap locals:
StackMap stack:
aload 0
getfield com.apple.laf.AquaCaret.isMultiLineEditor:Z
ifeq 12
10: aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.focusGained:(Ljava/awt/event/FocusEvent;)V
11: return
12: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
invokeinterface javax.swing.text.Document.getLength:()I
istore 3
start local 3 13: aload 0
invokevirtual com.apple.laf.AquaCaret.getDot:()I
istore 4
start local 4 14: aload 0
invokevirtual com.apple.laf.AquaCaret.getMark:()I
istore 5
start local 5 15: iload 4
iload 5
if_icmpne 23
16: iload 4
ifne 20
17: aload 2
iload 3
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
18: aload 2
iconst_0
invokevirtual javax.swing.text.JTextComponent.moveCaretPosition:(I)V
19: goto 23
StackMap locals: int int int
StackMap stack:
20: iload 4
iload 3
if_icmpne 23
21: aload 2
iconst_0
invokevirtual javax.swing.text.JTextComponent.setCaretPosition:(I)V
22: aload 2
iload 3
invokevirtual javax.swing.text.JTextComponent.moveCaretPosition:(I)V
23: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.focusGained:(Ljava/awt/event/FocusEvent;)V
24: 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 25 0 this Lcom/apple/laf/AquaCaret;
0 25 1 e Ljava/awt/event/FocusEvent;
1 25 2 component Ljavax/swing/text/JTextComponent;
13 25 3 end I
14 25 4 dot I
15 25 5 mark I
MethodParameters:
Name Flags
e final
public void focusLost(java.awt.event.FocusEvent);
descriptor: (Ljava/awt/event/FocusEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield com.apple.laf.AquaCaret.mFocused:Z
1: aload 0
iconst_1
putfield com.apple.laf.AquaCaret.shouldSelectAllOnFocus:Z
2: aload 0
getfield com.apple.laf.AquaCaret.isMultiLineEditor:Z
ifeq 6
3: aload 0
iconst_0
invokevirtual com.apple.laf.AquaCaret.setVisible:(Z)V
4: aload 0
invokevirtual com.apple.laf.AquaCaret.getComponent:()Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.repaint:()V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.focusLost:(Ljava/awt/event/FocusEvent;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/apple/laf/AquaCaret;
0 8 1 e Ljava/awt/event/FocusEvent;
MethodParameters:
Name Flags
e final
public void mousePressed(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.MouseEvent.isPopupTrigger:()Z
ifne 4
aload 1
invokestatic javax.swing.SwingUtilities.isLeftMouseButton:(Ljava/awt/event/MouseEvent;)Z
ifeq 2
1: aload 1
invokevirtual java.awt.event.MouseEvent.getClickCount:()I
iconst_3
if_icmpeq 4
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.mousePressed:(Ljava/awt/event/MouseEvent;)V
3: aload 0
iconst_0
putfield com.apple.laf.AquaCaret.shouldSelectAllOnFocus:Z
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/apple/laf/AquaCaret;
0 5 1 e Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
e final
protected synchronized void damage(java.awt.Rectangle);
descriptor: (Ljava/awt/Rectangle;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield com.apple.laf.AquaCaret.fPainting:Z
ifeq 2
StackMap locals:
StackMap stack:
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield java.awt.Rectangle.x:I
iconst_4
isub
putfield com.apple.laf.AquaCaret.x:I
3: aload 0
aload 1
getfield java.awt.Rectangle.y:I
putfield com.apple.laf.AquaCaret.y:I
4: aload 0
bipush 10
putfield com.apple.laf.AquaCaret.width:I
5: aload 0
aload 1
getfield java.awt.Rectangle.height:I
putfield com.apple.laf.AquaCaret.height:I
6: new java.awt.Rectangle
dup
aload 0
getfield com.apple.laf.AquaCaret.x:I
aload 0
getfield com.apple.laf.AquaCaret.y:I
aload 0
getfield com.apple.laf.AquaCaret.width:I
aload 0
getfield com.apple.laf.AquaCaret.height:I
invokespecial java.awt.Rectangle.<init>:(IIII)V
astore 2
start local 2 7: aload 0
invokevirtual com.apple.laf.AquaCaret.getComponent:()Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getBorder:()Ljavax/swing/border/Border;
astore 3
start local 3 8: aload 3
ifnull 17
9: aload 0
invokevirtual com.apple.laf.AquaCaret.getComponent:()Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getBounds:()Ljava/awt/Rectangle;
astore 4
start local 4 10: aload 4
aload 4
iconst_0
dup_x1
putfield java.awt.Rectangle.y:I
putfield java.awt.Rectangle.x:I
11: aload 3
aload 0
invokevirtual com.apple.laf.AquaCaret.getComponent:()Ljavax/swing/text/JTextComponent;
invokeinterface javax.swing.border.Border.getBorderInsets:(Ljava/awt/Component;)Ljava/awt/Insets;
astore 5
start local 5 12: aload 4
dup
getfield java.awt.Rectangle.x:I
aload 5
getfield java.awt.Insets.left:I
iadd
putfield java.awt.Rectangle.x:I
13: aload 4
dup
getfield java.awt.Rectangle.y:I
aload 5
getfield java.awt.Insets.top:I
iadd
putfield java.awt.Rectangle.y:I
14: aload 4
dup
getfield java.awt.Rectangle.width:I
aload 5
getfield java.awt.Insets.left:I
aload 5
getfield java.awt.Insets.right:I
iadd
isub
putfield java.awt.Rectangle.width:I
15: aload 4
dup
getfield java.awt.Rectangle.height:I
aload 5
getfield java.awt.Insets.top:I
aload 5
getfield java.awt.Insets.bottom:I
iadd
isub
putfield java.awt.Rectangle.height:I
16: aload 2
aload 4
aload 2
invokestatic java.awt.geom.Rectangle2D.intersect:(Ljava/awt/geom/Rectangle2D;Ljava/awt/geom/Rectangle2D;Ljava/awt/geom/Rectangle2D;)V
end local 5 end local 4 17: StackMap locals: java.awt.Rectangle javax.swing.border.Border
StackMap stack:
aload 0
aload 2
getfield java.awt.Rectangle.x:I
putfield com.apple.laf.AquaCaret.x:I
18: aload 0
aload 2
getfield java.awt.Rectangle.y:I
putfield com.apple.laf.AquaCaret.y:I
19: aload 0
aload 2
getfield java.awt.Rectangle.width:I
iconst_1
invokestatic java.lang.Math.max:(II)I
putfield com.apple.laf.AquaCaret.width:I
20: aload 0
aload 2
getfield java.awt.Rectangle.height:I
iconst_1
invokestatic java.lang.Math.max:(II)I
putfield com.apple.laf.AquaCaret.height:I
21: aload 0
invokevirtual com.apple.laf.AquaCaret.repaint:()V
22: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/apple/laf/AquaCaret;
0 23 1 r Ljava/awt/Rectangle;
7 23 2 caretRect Ljava/awt/Rectangle;
8 23 3 border Ljavax/swing/border/Border;
10 17 4 alloc Ljava/awt/Rectangle;
12 17 5 borderInsets Ljava/awt/Insets;
MethodParameters:
Name Flags
r final
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.apple.laf.AquaCaret.isVisible:()Z
ifeq 4
1: aload 0
iconst_1
putfield com.apple.laf.AquaCaret.fPainting:Z
2: aload 0
aload 1
invokespecial javax.swing.text.DefaultCaret.paint:(Ljava/awt/Graphics;)V
3: aload 0
iconst_0
putfield com.apple.laf.AquaCaret.fPainting:Z
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/apple/laf/AquaCaret;
0 5 1 g Ljava/awt/Graphics;
MethodParameters:
Name Flags
g final
}
SourceFile: "AquaCaret.java"
InnerClasses:
public abstract HighlightPainter = javax.swing.text.Highlighter$HighlightPainter of javax.swing.text.Highlighter
public abstract LayerPainter = javax.swing.text.LayeredHighlighter$LayerPainter of javax.swing.text.LayeredHighlighter