public class extends sun.lwawt.macosx.CMenuItem implements java.awt.peer.MenuPeer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.lwawt.macosx.CMenu
super_class: sun.lwawt.macosx.CMenuItem
{
public void (java.awt.Menu);
descriptor: (Ljava/awt/Menu;)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 sun.lwawt.macosx.CMenuItem.<init>:(Ljava/awt/MenuItem;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CMenu;
0 2 1 target Ljava/awt/Menu;
MethodParameters:
Name Flags
target
protected final void (java.awt.MenuItem);
descriptor: (Ljava/awt/MenuItem;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.awt.MenuItem.getLabel:()Ljava/lang/String;
invokevirtual sun.lwawt.macosx.CMenu.setLabel:(Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual java.awt.MenuItem.isEnabled:()Z
invokevirtual sun.lwawt.macosx.CMenu.setEnabled:(Z)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/lwawt/macosx/CMenu;
0 3 1 target Ljava/awt/MenuItem;
MethodParameters:
Name Flags
target
public final void (boolean);
descriptor: (Z)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial sun.lwawt.macosx.CMenuItem.setEnabled:(Z)V
1: aload 0
invokevirtual sun.lwawt.macosx.CMenu.getTarget:()Ljava/awt/MenuComponent;
checkcast java.awt.Menu
astore 2
start local 2 2: aload 2
invokevirtual java.awt.Menu.getItemCount:()I
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 12
5: StackMap locals: java.awt.Menu int int
StackMap stack:
aload 2
iload 4
invokevirtual java.awt.Menu.getItem:(I)Ljava/awt/MenuItem;
astore 5
start local 5 6: aload 5
invokestatic sun.lwawt.macosx.LWCToolkit.targetToPeer:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.awt.peer.MenuItemPeer
astore 6
start local 6 7: aload 6
ifnull 11
8: aload 6
iload 1
ifeq 9
aload 5
invokevirtual java.awt.MenuItem.isEnabled:()Z
ifeq 9
iconst_1
goto 10
StackMap locals: sun.lwawt.macosx.CMenu int java.awt.Menu int int java.awt.MenuItem java.awt.peer.MenuItemPeer
StackMap stack: java.awt.peer.MenuItemPeer
9: iconst_0
StackMap locals: sun.lwawt.macosx.CMenu int java.awt.Menu int int java.awt.MenuItem java.awt.peer.MenuItemPeer
StackMap stack: java.awt.peer.MenuItemPeer int
10: invokeinterface java.awt.peer.MenuItemPeer.setEnabled:(Z)V
end local 6 end local 5 11: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
iload 3
if_icmplt 5
end local 4 13: return
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/CMenu;
0 14 1 b Z
2 14 2 target Ljava/awt/Menu;
3 14 3 count I
4 13 4 i I
6 11 5 item Ljava/awt/MenuItem;
7 11 6 p Ljava/awt/peer/MenuItemPeer;
MethodParameters:
Name Flags
b final
long ();
descriptor: ()J
flags: (0x0000)
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual sun.lwawt.macosx.CMenu.getTarget:()Ljava/awt/MenuComponent;
invokevirtual java.awt.MenuComponent.getParent:()Ljava/awt/MenuContainer;
invokestatic sun.lwawt.macosx.LWCToolkit.targetToPeer:(Ljava/lang/Object;)Ljava/lang/Object;
1: checkcast sun.lwawt.macosx.CMenuComponent
astore 1
start local 1 2: aload 1
instanceof sun.lwawt.macosx.CMenu
ifeq 4
3: aload 1
aload 0
invokedynamic run(Lsun/lwawt/macosx/CMenu;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeActionGet;
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)J
sun/lwawt/macosx/CMenu.nativeCreateSubMenu(J)J (7)
(J)J
invokevirtual sun.lwawt.macosx.CMenuComponent.executeGet:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeActionGet;)J
lreturn
4: StackMap locals: sun.lwawt.macosx.CMenuComponent
StackMap stack:
aload 1
instanceof sun.lwawt.macosx.CMenuBar
ifeq 11
5: aload 0
invokevirtual sun.lwawt.macosx.CMenu.getTarget:()Ljava/awt/MenuComponent;
invokevirtual java.awt.MenuComponent.getParent:()Ljava/awt/MenuContainer;
checkcast java.awt.MenuBar
astore 3
start local 3 6: aload 3
invokevirtual java.awt.MenuBar.getHelpMenu:()Ljava/awt/Menu;
aload 0
invokevirtual sun.lwawt.macosx.CMenu.getTarget:()Ljava/awt/MenuComponent;
if_acmpne 7
iconst_1
goto 8
StackMap locals: sun.lwawt.macosx.CMenu sun.lwawt.macosx.CMenuComponent top java.awt.MenuBar
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: istore 4
start local 4 9: aload 1
checkcast sun.lwawt.macosx.CMenuBar
invokevirtual sun.lwawt.macosx.CMenuBar.getNextInsertionIndex:()I
istore 5
start local 5 10: aload 1
aload 0
iload 4
iload 5
invokedynamic run(Lsun/lwawt/macosx/CMenu;ZI)Lsun/lwawt/macosx/CFRetainedResource$CFNativeActionGet;
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)J
sun/lwawt/macosx/CMenu.lambda$1(ZIJ)J (7)
(J)J
invokevirtual sun.lwawt.macosx.CMenuComponent.executeGet:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeActionGet;)J
lreturn
end local 5 end local 4 end local 3 11: StackMap locals: sun.lwawt.macosx.CMenu sun.lwawt.macosx.CMenuComponent
StackMap stack:
new java.lang.InternalError
dup
ldc "Parent must be CMenu or CMenuBar"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/lwawt/macosx/CMenu;
2 12 1 parent Lsun/lwawt/macosx/CMenuComponent;
6 11 3 parentContainer Ljava/awt/MenuBar;
9 11 4 isHelpMenu Z
10 11 5 insertionLocation I
public final void (java.awt.MenuItem);
descriptor: (Ljava/awt/MenuItem;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CMenu;
0 1 1 item Ljava/awt/MenuItem;
MethodParameters:
Name Flags
item
public final void (int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
iload 1
invokedynamic run(Lsun/lwawt/macosx/CMenu;I)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/CMenu.lambda$2(IJ)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CMenu.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/CMenu;
0 2 1 index I
MethodParameters:
Name Flags
index final
public final void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
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/CMenu;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/CMenu.lambda$3(Ljava/lang/String;J)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CMenu.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: aload 0
aload 1
invokespecial sun.lwawt.macosx.CMenuItem.setLabel:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/lwawt/macosx/CMenu;
0 3 1 label Ljava/lang/String;
MethodParameters:
Name Flags
label final
public final void ();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokedynamic run(Lsun/lwawt/macosx/CMenu;)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/CMenu.nativeAddSeparator(J)V (7)
(J)V
invokevirtual sun.lwawt.macosx.CMenu.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CMenu;
public final long ();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokedynamic run(Lsun/lwawt/macosx/CMenu;)Lsun/lwawt/macosx/CFRetainedResource$CFNativeActionGet;
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)J
sun/lwawt/macosx/CMenu.nativeGetNSMenu(J)J (7)
(J)J
invokevirtual sun.lwawt.macosx.CMenu.executeGet:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeActionGet;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CMenu;
private native long (long, boolean, int);
descriptor: (JZI)J
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
parentMenuPtr
isHelpMenu
insertionLocation
private native long (long);
descriptor: (J)J
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
parentMenuPtr
private native void (long, java.lang.String);
descriptor: (JLjava/lang/String;)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
menuPtr
title
private native void (long);
descriptor: (J)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
menuPtr
private native void (long, int);
descriptor: (JI)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
menuPtr
index
private native long (long);
descriptor: (J)J
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
menuPtr
private long (boolean, int, long);
descriptor: (ZIJ)J
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 3 0: aload 0
lload 3
iload 1
1: iload 2
2: invokevirtual sun.lwawt.macosx.CMenu.nativeCreateMenu:(JZI)J
3: lreturn
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/lwawt/macosx/CMenu;
0 4 3 ptr J
private void (int, long);
descriptor: (IJ)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
iload 1
invokevirtual sun.lwawt.macosx.CMenu.nativeDeleteItem:(JI)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CMenu;
0 1 2 ptr J
private void (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.CMenu.nativeSetMenuTitle:(JLjava/lang/String;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CMenu;
0 1 2 ptr J
}
SourceFile: "CMenu.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract CFNativeAction = sun.lwawt.macosx.CFRetainedResource$CFNativeAction of sun.lwawt.macosx.CFRetainedResource
abstract CFNativeActionGet = sun.lwawt.macosx.CFRetainedResource$CFNativeActionGet of sun.lwawt.macosx.CFRetainedResource