public final class
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.glass.ui.MenuBar
super_class: java.lang.Object
{
private final com.sun.glass.ui.delegate.MenuBarDelegate ;
descriptor: Lcom/sun/glass/ui/delegate/MenuBarDelegate;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<com.sun.glass.ui.Menu> ;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/sun/glass/ui/Menu;>;
protected void ();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
2: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
3: aload 0
invokestatic com.sun.glass.ui.PlatformFactory.getPlatformFactory:()Lcom/sun/glass/ui/PlatformFactory;
aload 0
invokevirtual com.sun.glass.ui.PlatformFactory.createMenuBarDelegate:(Lcom/sun/glass/ui/MenuBar;)Lcom/sun/glass/ui/delegate/MenuBarDelegate;
putfield com.sun.glass.ui.MenuBar.delegate:Lcom/sun/glass/ui/delegate/MenuBarDelegate;
4: aload 0
getfield com.sun.glass.ui.MenuBar.delegate:Lcom/sun/glass/ui/delegate/MenuBarDelegate;
invokeinterface com.sun.glass.ui.delegate.MenuBarDelegate.createMenuBar:()Z
ifne 6
5: new java.lang.RuntimeException
dup
ldc "MenuBar creation error."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: com.sun.glass.ui.MenuBar
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/glass/ui/MenuBar;
long ();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.MenuBar.delegate:Lcom/sun/glass/ui/delegate/MenuBarDelegate;
invokeinterface com.sun.glass.ui.delegate.MenuBarDelegate.getNativeMenu:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/MenuBar;
public void (com.sun.glass.ui.Menu);
descriptor: (Lcom/sun/glass/ui/Menu;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
aload 1
aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokevirtual com.sun.glass.ui.MenuBar.insert:(Lcom/sun/glass/ui/Menu;I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/MenuBar;
0 3 1 menu Lcom/sun/glass/ui/Menu;
MethodParameters:
Name Flags
menu
public void (com.sun.glass.ui.Menu, int);
descriptor: (Lcom/sun/glass/ui/Menu;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
dup
astore 3
monitorenter
2: aload 0
getfield com.sun.glass.ui.MenuBar.delegate:Lcom/sun/glass/ui/delegate/MenuBarDelegate;
aload 1
invokevirtual com.sun.glass.ui.Menu.getDelegate:()Lcom/sun/glass/ui/delegate/MenuDelegate;
iload 2
invokeinterface com.sun.glass.ui.delegate.MenuBarDelegate.insert:(Lcom/sun/glass/ui/delegate/MenuDelegate;I)Z
ifeq 4
3: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
iload 2
aload 1
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
4: StackMap locals: java.util.List
StackMap stack:
aload 3
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
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/sun/glass/ui/MenuBar;
0 9 1 menu Lcom/sun/glass/ui/Menu;
0 9 2 pos I
Exception table:
from to target type
2 5 6 any
6 7 6 any
MethodParameters:
Name Flags
menu
pos
public void (int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
dup
astore 2
monitorenter
2: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.sun.glass.ui.Menu
astore 3
start local 3 3: aload 0
getfield com.sun.glass.ui.MenuBar.delegate:Lcom/sun/glass/ui/delegate/MenuBarDelegate;
aload 3
invokevirtual com.sun.glass.ui.Menu.getDelegate:()Lcom/sun/glass/ui/delegate/MenuDelegate;
iload 1
invokeinterface com.sun.glass.ui.delegate.MenuBarDelegate.remove:(Lcom/sun/glass/ui/delegate/MenuDelegate;I)Z
ifeq 5
4: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
iload 1
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 3 5: StackMap locals: java.util.List
StackMap stack:
aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/glass/ui/MenuBar;
0 10 1 pos I
3 5 3 menu Lcom/sun/glass/ui/Menu;
Exception table:
from to target type
2 6 7 any
7 8 7 any
MethodParameters:
Name Flags
pos
public void (com.sun.glass.ui.Menu);
descriptor: (Lcom/sun/glass/ui/Menu;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
dup
astore 2
monitorenter
2: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
aload 1
invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
istore 3
start local 3 3: iload 3
iflt 6
4: aload 0
getfield com.sun.glass.ui.MenuBar.delegate:Lcom/sun/glass/ui/delegate/MenuBarDelegate;
aload 1
invokevirtual com.sun.glass.ui.Menu.getDelegate:()Lcom/sun/glass/ui/delegate/MenuDelegate;
iload 3
invokeinterface com.sun.glass.ui.delegate.MenuBarDelegate.remove:(Lcom/sun/glass/ui/delegate/MenuDelegate;I)Z
ifeq 6
5: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
iload 3
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 3 6: StackMap locals: java.util.List
StackMap stack:
aload 2
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 2
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/glass/ui/MenuBar;
0 11 1 menu Lcom/sun/glass/ui/Menu;
3 6 3 pos I
Exception table:
from to target type
2 7 8 any
8 9 8 any
MethodParameters:
Name Flags
menu
public java.util.List<com.sun.glass.ui.Menu> getMenus();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 0
getfield com.sun.glass.ui.MenuBar.menus:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/MenuBar;
Signature: ()Ljava/util/List<Lcom/sun/glass/ui/Menu;>;
}
SourceFile: "MenuBar.java"