public class sun.lwawt.macosx.CTrayIcon extends sun.lwawt.macosx.CFRetainedResource implements java.awt.peer.TrayIconPeer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.lwawt.macosx.CTrayIcon
super_class: sun.lwawt.macosx.CFRetainedResource
{
private java.awt.TrayIcon target;
descriptor: Ljava/awt/TrayIcon;
flags: (0x0002) ACC_PRIVATE
private java.awt.PopupMenu ;
descriptor: Ljava/awt/PopupMenu;
flags: (0x0002) ACC_PRIVATE
private final java.awt.Frame dummyFrame;
descriptor: Ljava/awt/Frame;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static int mouseClickButtons;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.awt.TrayIcon);
descriptor: (Ljava/awt/TrayIcon;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
lconst_0
iconst_1
invokespecial sun.lwawt.macosx.CFRetainedResource.<init>:(JZ)V
1: aload 0
aload 1
putfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
2: aload 0
aload 1
invokevirtual java.awt.TrayIcon.getPopupMenu:()Ljava/awt/PopupMenu;
putfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
3: aload 0
new java.awt.Frame
dup
invokespecial java.awt.Frame.<init>:()V
putfield sun.lwawt.macosx.CTrayIcon.dummyFrame:Ljava/awt/Frame;
4: aload 0
aload 0
invokevirtual sun.lwawt.macosx.CTrayIcon.createModel:()J
invokevirtual sun.lwawt.macosx.CTrayIcon.setPtr:(J)V
5: aload 0
invokevirtual sun.lwawt.macosx.CTrayIcon.checkAndCreatePopupPeer:()Lsun/lwawt/macosx/CPopupMenu;
pop
6: aload 0
invokevirtual sun.lwawt.macosx.CTrayIcon.updateImage:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/lwawt/macosx/CTrayIcon;
0 8 1 target Ljava/awt/TrayIcon;
MethodParameters:
Name Flags
target
private sun.lwawt.macosx.CPopupMenu checkAndCreatePopupPeer();
descriptor: ()Lsun/lwawt/macosx/CPopupMenu;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
ifnull 10
2: invokestatic sun.awt.AWTAccessor.getMenuComponentAccessor:()Lsun/awt/AWTAccessor$MenuComponentAccessor;
astore 2
start local 2 3: aload 2
aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
invokeinterface sun.awt.AWTAccessor$MenuComponentAccessor.getPeer:(Ljava/awt/MenuComponent;)Ljava/awt/peer/MenuComponentPeer;
checkcast sun.lwawt.macosx.CPopupMenu
astore 1
4: aload 1
ifnonnull 10
5: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
invokevirtual java.awt.PopupMenu.addNotify:()V
6: aload 2
aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
invokeinterface sun.awt.AWTAccessor$MenuComponentAccessor.getPeer:(Ljava/awt/MenuComponent;)Ljava/awt/peer/MenuComponentPeer;
checkcast sun.lwawt.macosx.CPopupMenu
astore 1
end local 2 7: goto 10
StackMap locals: sun.lwawt.macosx.CTrayIcon sun.lwawt.macosx.CPopupMenu
StackMap stack: java.lang.Exception
8: astore 2
start local 2 9: aload 2
invokevirtual java.lang.Exception.printStackTrace:()V
end local 2 10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/lwawt/macosx/CTrayIcon;
1 11 1 menuPeer Lsun/lwawt/macosx/CPopupMenu;
3 7 2 acc Lsun/awt/AWTAccessor$MenuComponentAccessor;
9 10 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 7 8 Class java.lang.Exception
private long createModel();
descriptor: ()J
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.lwawt.macosx.CTrayIcon.nativeCreate:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CTrayIcon;
private native long nativeCreate();
descriptor: ()J
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
public long ();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
invokevirtual java.awt.TrayIcon.getPopupMenu:()Ljava/awt/PopupMenu;
astore 1
start local 1 1: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
aload 1
if_acmpne 4
2: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
ifnonnull 12
3: lconst_0
lreturn
4: StackMap locals: java.awt.PopupMenu
StackMap stack:
aload 1
ifnull 11
5: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
ifnull 9
6: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
invokevirtual java.awt.PopupMenu.removeNotify:()V
7: aload 0
aload 1
putfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
10: goto 12
11: StackMap locals:
StackMap stack:
lconst_0
lreturn
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.lwawt.macosx.CTrayIcon.checkAndCreatePopupPeer:()Lsun/lwawt/macosx/CPopupMenu;
getfield sun.lwawt.macosx.CPopupMenu.ptr:J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/lwawt/macosx/CTrayIcon;
1 13 1 newPopup Ljava/awt/PopupMenu;
public void displayMessage(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokestatic sun.lwawt.macosx.CTrayIcon.getIconForMessageType:(Ljava/lang/String;)Ljavax/swing/Icon;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 4
ifnull 5
3: aload 4
ldc 0.75
invokestatic sun.lwawt.macosx.CTrayIcon.scaleIcon:(Ljavax/swing/Icon;D)Ljava/awt/image/BufferedImage;
astore 6
start local 6 4: invokestatic sun.lwawt.macosx.CImage.getCreator:()Lsun/lwawt/macosx/CImage$Creator;
aload 6
invokevirtual sun.lwawt.macosx.CImage$Creator.createFromImage:(Ljava/awt/Image;)Lsun/lwawt/macosx/CImage;
astore 5
end local 6 5: StackMap locals: javax.swing.Icon sun.lwawt.macosx.CImage
StackMap stack:
aload 5
ifnull 8
6: aload 5
aload 0
aload 1
aload 2
invokedynamic run(Lsun/lwawt/macosx/CTrayIcon;Ljava/lang/String;Ljava/lang/String;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CTrayIcon.lambda$0(Ljava/lang/String;Ljava/lang/String;J)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 1
aload 2
invokedynamic run(Lsun/lwawt/macosx/CTrayIcon;Ljava/lang/String;Ljava/lang/String;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CTrayIcon.lambda$2(Ljava/lang/String;Ljava/lang/String;J)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CTrayIcon.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
9: 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 10 0 this Lsun/lwawt/macosx/CTrayIcon;
0 10 1 caption Ljava/lang/String;
0 10 2 text Ljava/lang/String;
0 10 3 messageType Ljava/lang/String;
1 10 4 icon Ljavax/swing/Icon;
2 10 5 cimage Lsun/lwawt/macosx/CImage;
4 5 6 image Ljava/awt/image/BufferedImage;
MethodParameters:
Name Flags
caption final
text final
messageType final
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CTrayIcon.dummyFrame:Ljava/awt/Frame;
invokevirtual java.awt.Frame.dispose:()V
1: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
ifnull 3
2: aload 0
getfield sun.lwawt.macosx.CTrayIcon.popup:Ljava/awt/PopupMenu;
invokevirtual java.awt.PopupMenu.removeNotify:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
aload 0
invokestatic sun.lwawt.macosx.LWCToolkit.targetDisposedPeer:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 0
aconst_null
putfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
5: aload 0
invokespecial sun.lwawt.macosx.CFRetainedResource.dispose:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/lwawt/macosx/CTrayIcon;
public void setToolTip(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 0
aload 1
invokedynamic run(Lsun/lwawt/macosx/CTrayIcon;Ljava/lang/String;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CTrayIcon.lambda$3(Ljava/lang/String;J)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CTrayIcon.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CTrayIcon;
0 2 1 tooltip Ljava/lang/String;
MethodParameters:
Name Flags
tooltip
private native void nativeSetToolTip(long, java.lang.String);
descriptor: (JLjava/lang/String;)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
trayIconModel
tooltip
public void (int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CTrayIcon;
0 1 1 x I
0 1 2 y I
MethodParameters:
Name Flags
x
y
public void updateImage();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
invokevirtual java.awt.TrayIcon.getImage:()Ljava/awt/Image;
astore 1
start local 1 1: aload 1
ifnonnull 2
return
2: StackMap locals: java.awt.Image
StackMap stack:
new java.awt.MediaTracker
dup
new java.awt.Button
dup
ldc ""
invokespecial java.awt.Button.<init>:(Ljava/lang/String;)V
invokespecial java.awt.MediaTracker.<init>:(Ljava/awt/Component;)V
astore 2
start local 2 3: aload 2
aload 1
iconst_0
invokevirtual java.awt.MediaTracker.addImage:(Ljava/awt/Image;I)V
4: aload 2
invokevirtual java.awt.MediaTracker.waitForAll:()V
5: goto 7
StackMap locals: sun.lwawt.macosx.CTrayIcon java.awt.Image java.awt.MediaTracker
StackMap stack: java.lang.InterruptedException
6: pop
7: StackMap locals:
StackMap stack:
aload 1
aconst_null
invokevirtual java.awt.Image.getWidth:(Ljava/awt/image/ImageObserver;)I
ifle 9
8: aload 1
aconst_null
invokevirtual java.awt.Image.getHeight:(Ljava/awt/image/ImageObserver;)I
ifgt 10
9: StackMap locals:
StackMap stack:
return
10: StackMap locals:
StackMap stack:
invokestatic sun.lwawt.macosx.CImage.getCreator:()Lsun/lwawt/macosx/CImage$Creator;
aload 1
invokevirtual sun.lwawt.macosx.CImage$Creator.createFromImage:(Ljava/awt/Image;)Lsun/lwawt/macosx/CImage;
astore 3
start local 3 11: aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
invokevirtual java.awt.TrayIcon.isImageAutoSize:()Z
istore 4
start local 4 12: aload 3
aload 0
iload 4
invokedynamic run(Lsun/lwawt/macosx/CTrayIcon;Z)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CTrayIcon.lambda$4(ZJ)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CImage.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
13: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/lwawt/macosx/CTrayIcon;
1 14 1 image Ljava/awt/Image;
3 14 2 tracker Ljava/awt/MediaTracker;
11 14 3 cimage Lsun/lwawt/macosx/CImage;
12 14 4 imageAutoSize Z
Exception table:
from to target type
4 5 6 Class java.lang.InterruptedException
private native void setNativeImage(long, long, boolean);
descriptor: (JJZ)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
model final
nsimage final
autosize final
private void postEvent(java.awt.AWTEvent);
descriptor: (Ljava/awt/AWTEvent;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
new sun.lwawt.macosx.CTrayIcon$1
dup
aload 0
aload 1
invokespecial sun.lwawt.macosx.CTrayIcon$1.<init>:(Lsun/lwawt/macosx/CTrayIcon;Ljava/awt/AWTEvent;)V
invokestatic sun.awt.SunToolkit.executeOnEventHandlerThread:(Ljava/lang/Object;Ljava/lang/Runnable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CTrayIcon;
0 2 1 event Ljava/awt/AWTEvent;
MethodParameters:
Name Flags
event final
private void handleMouseEvent(sun.lwawt.macosx.NSEvent);
descriptor: (Lsun/lwawt/macosx/NSEvent;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=14, locals=17, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.lwawt.macosx.NSEvent.getButtonNumber:()I
istore 2
start local 2 1: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
checkcast sun.awt.SunToolkit
astore 3
start local 3 2: iload 2
iconst_2
if_icmple 3
aload 3
invokevirtual sun.awt.SunToolkit.areExtraMouseButtonsEnabled:()Z
ifeq 4
3: StackMap locals: int sun.awt.SunToolkit
StackMap stack:
iload 2
aload 3
invokevirtual sun.awt.SunToolkit.getNumberOfButtons:()I
iconst_1
isub
if_icmple 5
4: StackMap locals:
StackMap stack:
return
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual sun.lwawt.macosx.NSEvent.getType:()I
invokestatic sun.lwawt.macosx.NSEvent.nsToJavaEventType:(I)I
istore 4
start local 4 6: iconst_0
istore 5
start local 5 7: iconst_0
istore 6
start local 6 8: iload 4
sipush 503
if_icmpeq 11
9: iload 2
invokestatic sun.lwawt.macosx.NSEvent.nsToJavaButton:(I)I
istore 5
10: aload 1
invokevirtual sun.lwawt.macosx.NSEvent.getClickCount:()I
istore 6
11: StackMap locals: int int int
StackMap stack:
aload 1
invokevirtual sun.lwawt.macosx.NSEvent.getModifierFlags:()I
12: invokestatic sun.lwawt.macosx.NSEvent.nsToJavaModifiers:(I)I
istore 7
start local 7 13: iload 7
invokestatic sun.lwawt.macosx.NSEvent.isPopupTrigger:(I)Z
istore 8
start local 8 14: iload 5
ifle 16
15: iload 5
invokestatic java.awt.event.MouseEvent.getMaskForButton:(I)I
goto 17
StackMap locals: int int
StackMap stack:
16: iconst_0
17: StackMap locals:
StackMap stack: int
istore 9
start local 9 18: invokestatic java.lang.System.currentTimeMillis:()J
lstore 10
start local 10 19: iload 4
sipush 501
if_icmpne 22
20: getstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
iload 9
ior
putstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
21: goto 24
StackMap locals: int long
StackMap stack:
22: iload 4
sipush 506
if_icmpne 24
23: iconst_0
putstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
24: StackMap locals:
StackMap stack:
aload 1
invokevirtual sun.lwawt.macosx.NSEvent.getAbsX:()I
istore 12
start local 12 25: aload 1
invokevirtual sun.lwawt.macosx.NSEvent.getAbsY:()I
istore 13
start local 13 26: new java.awt.event.MouseEvent
dup
aload 0
getfield sun.lwawt.macosx.CTrayIcon.dummyFrame:Ljava/awt/Frame;
iload 4
lload 10
27: iload 7
iload 12
iload 13
iload 12
iload 13
iload 6
iload 8
28: iload 5
29: invokespecial java.awt.event.MouseEvent.<init>:(Ljava/awt/Component;IJIIIIIIZI)V
astore 14
start local 14 30: aload 14
aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
invokevirtual java.awt.event.MouseEvent.setSource:(Ljava/lang/Object;)V
31: aload 0
aload 14
invokevirtual sun.lwawt.macosx.CTrayIcon.postEvent:(Ljava/awt/AWTEvent;)V
32: iload 4
sipush 501
if_icmpne 38
iload 8
ifeq 38
33: aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
invokevirtual java.awt.TrayIcon.getActionCommand:()Ljava/lang/String;
astore 15
start local 15 34: new java.awt.event.ActionEvent
dup
aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
35: sipush 1001
aload 15
36: invokespecial java.awt.event.ActionEvent.<init>:(Ljava/lang/Object;ILjava/lang/String;)V
astore 16
start local 16 37: aload 0
aload 16
invokevirtual sun.lwawt.macosx.CTrayIcon.postEvent:(Ljava/awt/AWTEvent;)V
end local 16 end local 15 38: StackMap locals: int int java.awt.event.MouseEvent
StackMap stack:
iload 4
sipush 502
if_icmpne 47
39: getstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
iload 9
iand
ifeq 46
40: new java.awt.event.MouseEvent
dup
aload 0
getfield sun.lwawt.macosx.CTrayIcon.dummyFrame:Ljava/awt/Frame;
41: sipush 500
lload 10
iload 7
iload 12
iload 13
42: iload 12
iload 13
iload 6
iload 8
iload 5
43: invokespecial java.awt.event.MouseEvent.<init>:(Ljava/awt/Component;IJIIIIIIZI)V
astore 15
start local 15 44: aload 15
aload 0
getfield sun.lwawt.macosx.CTrayIcon.target:Ljava/awt/TrayIcon;
invokevirtual java.awt.event.MouseEvent.setSource:(Ljava/lang/Object;)V
45: aload 0
aload 15
invokevirtual sun.lwawt.macosx.CTrayIcon.postEvent:(Ljava/awt/AWTEvent;)V
end local 15 46: StackMap locals:
StackMap stack:
getstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
iload 9
iconst_m1
ixor
iand
putstatic sun.lwawt.macosx.CTrayIcon.mouseClickButtons:I
47: StackMap locals:
StackMap stack:
return
end local 14 end local 13 end local 12 end local 10 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 48 0 this Lsun/lwawt/macosx/CTrayIcon;
0 48 1 nsEvent Lsun/lwawt/macosx/NSEvent;
1 48 2 buttonNumber I
2 48 3 tk Lsun/awt/SunToolkit;
6 48 4 jeventType I
7 48 5 jbuttonNumber I
8 48 6 jclickCount I
13 48 7 jmodifiers I
14 48 8 isPopupTrigger Z
18 48 9 eventButtonMask I
19 48 10 when J
25 48 12 absX I
26 48 13 absY I
30 48 14 mouseEvent Ljava/awt/event/MouseEvent;
34 38 15 cmd Ljava/lang/String;
37 38 16 event Ljava/awt/event/ActionEvent;
44 46 15 clickEvent Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
nsEvent
private native void nativeShowNotification(long, java.lang.String, java.lang.String, long);
descriptor: (JLjava/lang/String;Ljava/lang/String;J)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
trayIconModel
caption
text
nsimage
private native java.awt.geom.Point2D nativeGetIconLocation(long);
descriptor: (J)Ljava/awt/geom/Point2D;
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
trayIconModel
private static java.awt.image.BufferedImage scaleIcon(javax.swing.Icon, double);
descriptor: (Ljavax/swing/Icon;D)Ljava/awt/image/BufferedImage;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=13, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface javax.swing.Icon.getIconWidth:()I
istore 3
start local 3 3: aload 0
invokeinterface javax.swing.Icon.getIconHeight:()I
istore 4
start local 4 4: invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
5: astore 5
start local 5 6: aload 5
invokevirtual java.awt.GraphicsEnvironment.getDefaultScreenDevice:()Ljava/awt/GraphicsDevice;
astore 6
start local 6 7: aload 6
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
astore 7
start local 7 8: aload 7
iload 3
iload 4
9: iconst_3
10: invokevirtual java.awt.GraphicsConfiguration.createCompatibleImage:(III)Ljava/awt/image/BufferedImage;
astore 8
start local 8 11: aload 8
invokevirtual java.awt.image.BufferedImage.createGraphics:()Ljava/awt/Graphics2D;
astore 9
start local 9 12: aload 0
aconst_null
aload 9
iconst_0
iconst_0
invokeinterface javax.swing.Icon.paintIcon:(Ljava/awt/Component;Ljava/awt/Graphics;II)V
13: aload 9
invokevirtual java.awt.Graphics2D.dispose:()V
14: iload 3
i2d
dload 1
dmul
d2i
istore 10
start local 10 15: iload 4
i2d
dload 1
dmul
d2i
istore 11
start local 11 16: aload 7
iload 10
iload 11
17: iconst_3
18: invokevirtual java.awt.GraphicsConfiguration.createCompatibleImage:(III)Ljava/awt/image/BufferedImage;
astore 12
start local 12 19: aload 12
invokevirtual java.awt.image.BufferedImage.createGraphics:()Ljava/awt/Graphics2D;
astore 9
20: aload 9
getstatic java.awt.RenderingHints.KEY_INTERPOLATION:Ljava/awt/RenderingHints$Key;
21: getstatic java.awt.RenderingHints.VALUE_INTERPOLATION_BILINEAR:Ljava/lang/Object;
22: invokevirtual java.awt.Graphics2D.setRenderingHint:(Ljava/awt/RenderingHints$Key;Ljava/lang/Object;)V
23: aload 9
aload 8
iconst_0
iconst_0
iload 10
iload 11
aconst_null
invokevirtual java.awt.Graphics2D.drawImage:(Ljava/awt/Image;IIIILjava/awt/image/ImageObserver;)Z
pop
24: aload 9
invokevirtual java.awt.Graphics2D.dispose:()V
25: aload 12
areturn
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 icon Ljavax/swing/Icon;
0 26 1 scaleFactor D
3 26 3 w I
4 26 4 h I
6 26 5 ge Ljava/awt/GraphicsEnvironment;
7 26 6 gd Ljava/awt/GraphicsDevice;
8 26 7 gc Ljava/awt/GraphicsConfiguration;
11 26 8 iconImage Ljava/awt/image/BufferedImage;
12 26 9 g Ljava/awt/Graphics2D;
15 26 10 scaledW I
16 26 11 scaledH I
19 26 12 scaledImage Ljava/awt/image/BufferedImage;
MethodParameters:
Name Flags
icon
scaleFactor
private static javax.swing.Icon getIconForMessageType(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/swing/Icon;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "ERROR"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: ldc "OptionPane.errorIcon"
invokestatic javax.swing.UIManager.getIcon:(Ljava/lang/Object;)Ljavax/swing/Icon;
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "WARNING"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: ldc "OptionPane.warningIcon"
invokestatic javax.swing.UIManager.getIcon:(Ljava/lang/Object;)Ljavax/swing/Icon;
areturn
4: StackMap locals:
StackMap stack:
ldc "OptionPane.informationIcon"
invokestatic javax.swing.UIManager.getIcon:(Ljava/lang/Object;)Ljavax/swing/Icon;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 messageType Ljava/lang/String;
MethodParameters:
Name Flags
messageType
private void lambda$0(java.lang.String, java.lang.String, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;J)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 3 0: aload 0
aload 0
aload 1
aload 2
lload 3
invokedynamic run(Lsun/lwawt/macosx/CTrayIcon;Ljava/lang/String;Ljava/lang/String;J)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CTrayIcon.lambda$1(Ljava/lang/String;Ljava/lang/String;JJ)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CTrayIcon.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CTrayIcon;
0 2 3 imagePtr J
private void lambda$2(java.lang.String, java.lang.String, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;J)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 3 0: aload 0
lload 3
aload 1
aload 2
lconst_0
invokevirtual sun.lwawt.macosx.CTrayIcon.nativeShowNotification:(JLjava/lang/String;Ljava/lang/String;J)V
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CTrayIcon;
0 1 3 ptr J
private void lambda$3(java.lang.String, long);
descriptor: (Ljava/lang/String;J)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 2 0: aload 0
lload 2
aload 1
invokevirtual sun.lwawt.macosx.CTrayIcon.nativeSetToolTip:(JLjava/lang/String;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CTrayIcon;
0 1 2 ptr J
private void lambda$4(boolean, long);
descriptor: (ZJ)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 2 0: aload 0
aload 0
lload 2
iload 1
invokedynamic run(Lsun/lwawt/macosx/CTrayIcon;JZ)Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;
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:
(J)V
sun/lwawt/macosx/CTrayIcon.lambda$5(JZJ)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CTrayIcon.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CTrayIcon;
0 2 2 imagePtr J
private void lambda$1(java.lang.String, java.lang.String, long, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;JJ)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=7, args_size=5
start local 0 start local 5 0: aload 0
lload 5
aload 1
aload 2
1: lload 3
2: invokevirtual sun.lwawt.macosx.CTrayIcon.nativeShowNotification:(JLjava/lang/String;Ljava/lang/String;J)V
3: return
end local 5 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/lwawt/macosx/CTrayIcon;
0 4 5 ptr J
private void lambda$5(long, boolean, long);
descriptor: (JZJ)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 4 0: aload 0
lload 4
lload 1
iload 3
invokevirtual sun.lwawt.macosx.CTrayIcon.setNativeImage:(JJZ)V
1: return
end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CTrayIcon;
0 2 4 ptr J
}
SourceFile: "CTrayIcon.java"
NestMembers:
sun.lwawt.macosx.CTrayIcon$1
InnerClasses:
public abstract Key = java.awt.RenderingHints$Key of java.awt.RenderingHints
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract MenuComponentAccessor = sun.awt.AWTAccessor$MenuComponentAccessor of sun.awt.AWTAccessor
public abstract CFNativeAction = sun.lwawt.macosx.CFRetainedResource$CFNativeAction of sun.lwawt.macosx.CFRetainedResource
public Creator = sun.lwawt.macosx.CImage$Creator of sun.lwawt.macosx.CImage
sun.lwawt.macosx.CTrayIcon$1