class com.apple.eawt._AppMenuBarHandler
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.apple.eawt._AppMenuBarHandler
super_class: java.lang.Object
{
private static final int MENU_ABOUT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int MENU_PREFS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
static final com.apple.eawt._AppMenuBarHandler instance;
descriptor: Lcom/apple/eawt/_AppMenuBarHandler;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static com.apple.laf.ScreenMenuBar defaultMenuBar;
descriptor: Lcom/apple/laf/ScreenMenuBar;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
boolean aboutMenuItemVisible;
descriptor: Z
flags: (0x0000)
boolean aboutMenuItemEnabled;
descriptor: Z
flags: (0x0000)
boolean prefsMenuItemVisible;
descriptor: Z
flags: (0x0000)
boolean prefsMenuItemEnabled;
descriptor: Z
flags: (0x0000)
boolean prefsMenuItemExplicitlySet;
descriptor: Z
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new com.apple.eawt._AppMenuBarHandler
dup
invokespecial com.apple.eawt._AppMenuBarHandler.<init>:()V
putstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
1: return
LocalVariableTable:
Start End Slot Name Signature
private static native void nativeSetMenuState(int, boolean, boolean);
descriptor: (IZZ)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
menu final
visible final
enabled final
private static native void nativeSetDefaultMenuBar(long);
descriptor: (J)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
menuBarPeer final
private static native void nativeActivateDefaultMenuBar(long);
descriptor: (J)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
menuBarPeer final
static com.apple.eawt._AppMenuBarHandler getInstance();
descriptor: ()Lcom/apple/eawt/_AppMenuBarHandler;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void initMenuStates(boolean, boolean, boolean, boolean);
descriptor: (ZZZZ)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
dup
astore 4
monitorenter
1: getstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
iload 0
putfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemVisible:Z
2: getstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
iload 1
putfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemEnabled:Z
3: getstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
iload 2
putfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemVisible:Z
4: getstatic com.apple.eawt._AppMenuBarHandler.instance:Lcom/apple/eawt/_AppMenuBarHandler;
iload 3
putfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemEnabled:Z
5: aload 4
monitorexit
6: goto 9
StackMap locals: int int int int com.apple.eawt._AppMenuBarHandler
StackMap stack: java.lang.Throwable
7: aload 4
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 aboutMenuItemVisible Z
0 10 1 aboutMenuItemEnabled Z
0 10 2 prefsMenuItemVisible Z
0 10 3 prefsMenuItemEnabled Z
Exception table:
from to target type
1 6 7 any
7 8 7 any
MethodParameters:
Name Flags
aboutMenuItemVisible final
aboutMenuItemEnabled final
prefsMenuItemVisible final
prefsMenuItemEnabled final
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/apple/eawt/_AppMenuBarHandler;
void setDefaultMenuBar(javax.swing.JMenuBar);
descriptor: (Ljavax/swing/JMenuBar;)V
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.apple.eawt._AppMenuBarHandler.installDefaultMenuBar:(Ljavax/swing/JMenuBar;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/apple/eawt/_AppMenuBarHandler;
0 2 1 menuBar Ljavax/swing/JMenuBar;
MethodParameters:
Name Flags
menuBar final
static boolean isMenuBarActivationNeeded();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=0
0: invokestatic java.awt.Frame.getFrames:()[Ljava/awt/Frame;
astore 0
start local 0 1: aload 0
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 6
StackMap locals: java.awt.Frame[] top int int java.awt.Frame[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
invokevirtual java.awt.Frame.isVisible:()Z
ifeq 5
aload 1
invokestatic com.apple.eawt._AppMenuBarHandler.isFrameMinimized:(Ljava/awt/Frame;)Z
ifne 5
4: iconst_0
ireturn
end local 1 5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 3
if_icmplt 2
7: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 8 0 frames [Ljava/awt/Frame;
3 5 1 frame Ljava/awt/Frame;
static boolean isFrameMinimized(java.awt.Frame);
descriptor: (Ljava/awt/Frame;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Frame.getExtendedState:()I
iconst_1
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 frame Ljava/awt/Frame;
MethodParameters:
Name Flags
frame final
static void installDefaultMenuBar(javax.swing.JMenuBar);
descriptor: (Ljavax/swing/JMenuBar;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
ifnonnull 6
1: getstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
ifnull 4
2: getstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
invokevirtual com.apple.laf.ScreenMenuBar.removeNotify:()V
3: aconst_null
putstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
4: StackMap locals:
StackMap stack:
lconst_0
invokestatic com.apple.eawt._AppMenuBarHandler.nativeSetDefaultMenuBar:(J)V
5: return
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.JMenuBar.getParent:()Ljava/awt/Container;
astore 1
start local 1 7: aload 1
instanceof javax.swing.JLayeredPane
ifeq 9
8: aload 1
checkcast javax.swing.JLayeredPane
aload 0
invokevirtual javax.swing.JLayeredPane.remove:(Ljava/awt/Component;)V
9: StackMap locals: java.awt.Container
StackMap stack:
aload 0
invokevirtual javax.swing.JMenuBar.getUI:()Ljavax/swing/plaf/MenuBarUI;
astore 2
start local 2 10: aload 2
instanceof com.apple.laf.AquaMenuBarUI
ifne 13
11: new com.apple.laf.AquaMenuBarUI
dup
invokespecial com.apple.laf.AquaMenuBarUI.<init>:()V
astore 2
12: aload 0
aload 2
invokevirtual javax.swing.JMenuBar.setUI:(Ljavax/swing/plaf/MenuBarUI;)V
13: StackMap locals: javax.swing.plaf.MenuBarUI
StackMap stack:
aload 2
checkcast com.apple.laf.AquaMenuBarUI
astore 3
start local 3 14: aload 3
invokevirtual com.apple.laf.AquaMenuBarUI.getScreenMenuBar:()Lcom/apple/laf/ScreenMenuBar;
astore 4
start local 4 15: aload 4
ifnonnull 17
16: new java.lang.IllegalStateException
dup
ldc "Application.setDefaultMenuBar() only works if apple.laf.useScreenMenuBar=true"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: com.apple.laf.AquaMenuBarUI com.apple.laf.ScreenMenuBar
StackMap stack:
aload 4
getstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
if_acmpeq 22
18: getstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
ifnull 20
19: getstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
invokevirtual com.apple.laf.ScreenMenuBar.removeNotify:()V
20: StackMap locals:
StackMap stack:
aload 4
putstatic com.apple.eawt._AppMenuBarHandler.defaultMenuBar:Lcom/apple/laf/ScreenMenuBar;
21: aload 4
invokevirtual com.apple.laf.ScreenMenuBar.addNotify:()V
22: StackMap locals:
StackMap stack:
invokestatic sun.awt.AWTAccessor.getMenuComponentAccessor:()Lsun/awt/AWTAccessor$MenuComponentAccessor;
aload 4
invokeinterface sun.awt.AWTAccessor$MenuComponentAccessor.getPeer:(Ljava/awt/MenuComponent;)Ljava/awt/peer/MenuComponentPeer;
astore 5
start local 5 23: aload 5
instanceof sun.lwawt.macosx.CMenuBar
ifne 25
24: new java.lang.IllegalStateException
dup
ldc "Unable to determine native menu bar from provided JMenuBar"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals: java.lang.Object
StackMap stack:
aload 5
checkcast sun.lwawt.macosx.CMenuBar
invokedynamic run()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
com/apple/eawt/_AppMenuBarHandler.nativeSetDefaultMenuBar(J)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CMenuBar.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
26: invokestatic com.apple.eawt._AppMenuBarHandler.isMenuBarActivationNeeded:()Z
ifeq 28
27: aload 5
checkcast sun.lwawt.macosx.CMenuBar
invokedynamic run()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
com/apple/eawt/_AppMenuBarHandler.nativeActivateDefaultMenuBar(J)V (6)
(J)V
invokevirtual sun.lwawt.macosx.CMenuBar.execute:(Lsun/lwawt/macosx/CFRetainedResource$CFNativeAction;)V
28: 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 29 0 menuBar Ljavax/swing/JMenuBar;
7 29 1 parent Ljava/awt/Container;
10 29 2 ui Ljavax/swing/plaf/MenuBarUI;
14 29 3 aquaUI Lcom/apple/laf/AquaMenuBarUI;
15 29 4 screenMenuBar Lcom/apple/laf/ScreenMenuBar;
23 29 5 peer Ljava/lang/Object;
MethodParameters:
Name Flags
menuBar final
void setAboutMenuItemVisible(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemVisible:Z
iload 1
if_icmpne 3
aload 2
monitorexit
2: return
3: StackMap locals: com.apple.eawt._AppMenuBarHandler
StackMap stack:
aload 0
iload 1
putfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemVisible:Z
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
iconst_1
aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemVisible:Z
aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemEnabled:Z
invokestatic com.apple.eawt._AppMenuBarHandler.nativeSetMenuState:(IZZ)V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/apple/eawt/_AppMenuBarHandler;
0 10 1 present Z
Exception table:
from to target type
1 2 6 any
3 5 6 any
6 7 6 any
MethodParameters:
Name Flags
present final
void setPreferencesMenuItemVisible(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
iconst_1
putfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemExplicitlySet:Z
2: aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemVisible:Z
iload 1
if_icmpne 4
aload 2
monitorexit
3: return
4: StackMap locals: com.apple.eawt._AppMenuBarHandler
StackMap stack:
aload 0
iload 1
putfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemVisible:Z
5: aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
iconst_2
aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemVisible:Z
aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemEnabled:Z
invokestatic com.apple.eawt._AppMenuBarHandler.nativeSetMenuState:(IZZ)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/apple/eawt/_AppMenuBarHandler;
0 11 1 present Z
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
MethodParameters:
Name Flags
present final
void setAboutMenuItemEnabled(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemEnabled:Z
iload 1
if_icmpne 3
aload 2
monitorexit
2: return
3: StackMap locals: com.apple.eawt._AppMenuBarHandler
StackMap stack:
aload 0
iload 1
putfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemEnabled:Z
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
iconst_1
aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemVisible:Z
aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemEnabled:Z
invokestatic com.apple.eawt._AppMenuBarHandler.nativeSetMenuState:(IZZ)V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/apple/eawt/_AppMenuBarHandler;
0 10 1 enable Z
Exception table:
from to target type
1 2 6 any
3 5 6 any
6 7 6 any
MethodParameters:
Name Flags
enable final
void setPreferencesMenuItemEnabled(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
iconst_1
putfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemExplicitlySet:Z
2: aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemEnabled:Z
iload 1
if_icmpne 4
aload 2
monitorexit
3: return
4: StackMap locals: com.apple.eawt._AppMenuBarHandler
StackMap stack:
aload 0
iload 1
putfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemEnabled:Z
5: aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
iconst_2
aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemVisible:Z
aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemEnabled:Z
invokestatic com.apple.eawt._AppMenuBarHandler.nativeSetMenuState:(IZZ)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/apple/eawt/_AppMenuBarHandler;
0 11 1 enable Z
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
MethodParameters:
Name Flags
enable final
boolean isAboutMenuItemVisible();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemVisible:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/apple/eawt/_AppMenuBarHandler;
boolean isPreferencesMenuItemVisible();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemVisible:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/apple/eawt/_AppMenuBarHandler;
boolean isAboutMenuItemEnabled();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.eawt._AppMenuBarHandler.aboutMenuItemEnabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/apple/eawt/_AppMenuBarHandler;
boolean isPreferencesMenuItemEnabled();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.eawt._AppMenuBarHandler.prefsMenuItemEnabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/apple/eawt/_AppMenuBarHandler;
}
SourceFile: "_AppMenuBarHandler.java"
InnerClasses:
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