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
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;
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
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=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.apple.eawt._AppMenuBarHandler.installDefaultMenuBar:(Ljavax/swing/JMenuBar;)V
1: invokestatic java.awt.Frame.getFrames:()[Ljava/awt/Frame;
astore 2
start local 2 2: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: com.apple.eawt._AppMenuBarHandler javax.swing.JMenuBar java.awt.Frame[] top int int java.awt.Frame[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 3
invokevirtual java.awt.Frame.isVisible:()Z
ifeq 6
aload 3
invokestatic com.apple.eawt._AppMenuBarHandler.isFrameMinimized:(Ljava/awt/Frame;)Z
ifne 6
5: return
end local 3 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 3
8: new javax.swing.JFrame
dup
invokespecial javax.swing.JFrame.<init>:()V
astore 3
start local 3 9: aload 3
invokevirtual javax.swing.JFrame.getRootPane:()Ljavax/swing/JRootPane;
ldc "Window.alpha"
new java.lang.Float
dup
fconst_0
invokespecial java.lang.Float.<init>:(F)V
invokevirtual javax.swing.JRootPane.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 3
iconst_1
invokevirtual javax.swing.JFrame.setUndecorated:(Z)V
11: aload 3
iconst_1
invokevirtual javax.swing.JFrame.setVisible:(Z)V
12: aload 3
invokevirtual javax.swing.JFrame.toFront:()V
13: aload 3
iconst_0
invokevirtual javax.swing.JFrame.setVisible:(Z)V
14: aload 3
invokevirtual javax.swing.JFrame.dispose:()V
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/apple/eawt/_AppMenuBarHandler;
0 16 1 menuBar Ljavax/swing/JMenuBar;
2 16 2 frames [Ljava/awt/Frame;
4 6 3 frame Ljava/awt/Frame;
9 16 3 pingFrame Ljavax/swing/JFrame;
MethodParameters:
Name Flags
menuBar final
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=5, args_size=1
start local 0 0: aload 0
ifnonnull 3
1: lconst_0
invokestatic com.apple.eawt._AppMenuBarHandler.nativeSetDefaultMenuBar:(J)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.swing.JMenuBar.getUI:()Ljavax/swing/plaf/MenuBarUI;
astore 1
start local 1 4: aload 1
instanceof com.apple.laf.AquaMenuBarUI
ifne 6
5: new java.lang.IllegalStateException
dup
ldc "Application.setDefaultMenuBar() only works with the Aqua Look and Feel"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: javax.swing.plaf.MenuBarUI
StackMap stack:
aload 1
checkcast com.apple.laf.AquaMenuBarUI
astore 2
start local 2 7: aload 2
invokevirtual com.apple.laf.AquaMenuBarUI.getScreenMenuBar:()Lcom/apple/laf/ScreenMenuBar;
astore 3
start local 3 8: aload 3
ifnonnull 10
9: 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
10: StackMap locals: com.apple.laf.AquaMenuBarUI com.apple.laf.ScreenMenuBar
StackMap stack:
aload 3
invokevirtual com.apple.laf.ScreenMenuBar.addNotify:()V
11: aload 3
invokevirtual com.apple.laf.ScreenMenuBar.getPeer:()Ljava/awt/peer/MenuComponentPeer;
astore 4
start local 4 12: aload 4
instanceof sun.lwawt.macosx.CMenuBar
ifne 14
13: 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
14: StackMap locals: java.awt.peer.MenuComponentPeer
StackMap stack:
aload 4
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
15: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 menuBar Ljavax/swing/JMenuBar;
4 16 1 ui Ljavax/swing/plaf/MenuBarUI;
7 16 2 aquaUI Lcom/apple/laf/AquaMenuBarUI;
8 16 3 screenMenuBar Lcom/apple/laf/ScreenMenuBar;
12 16 4 peer Ljava/awt/peer/MenuComponentPeer;
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 CFNativeAction = sun.lwawt.macosx.CFRetainedResource$CFNativeAction of sun.lwawt.macosx.CFRetainedResource