public final class
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.glass.ui.Menu
super_class: java.lang.Object
{
private final com.sun.glass.ui.delegate.MenuDelegate ;
descriptor: Lcom/sun/glass/ui/delegate/MenuDelegate;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean ;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.List<java.lang.Object> ;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/Object;>;
private com.sun.glass.ui.Menu$EventHandler eventHandler;
descriptor: Lcom/sun/glass/ui/Menu$EventHandler;
flags: (0x0002) ACC_PRIVATE
public com.sun.glass.ui.Menu$EventHandler getEventHandler();
descriptor: ()Lcom/sun/glass/ui/Menu$EventHandler;
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.Menu.eventHandler:Lcom/sun/glass/ui/Menu$EventHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/Menu;
public void setEventHandler(com.sun.glass.ui.Menu$EventHandler);
descriptor: (Lcom/sun/glass/ui/Menu$EventHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
putfield com.sun.glass.ui.Menu.eventHandler:Lcom/sun/glass/ui/Menu$EventHandler;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/Menu;
0 3 1 eventHandler Lcom/sun/glass/ui/Menu$EventHandler;
MethodParameters:
Name Flags
eventHandler
protected void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial com.sun.glass.ui.Menu.<init>:(Ljava/lang/String;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/Menu;
0 2 1 title Ljava/lang/String;
MethodParameters:
Name Flags
title
protected void (java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 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.Menu.items:Ljava/util/List;
2: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
3: aload 0
aload 1
putfield com.sun.glass.ui.Menu.title:Ljava/lang/String;
4: aload 0
iload 2
putfield com.sun.glass.ui.Menu.enabled:Z
5: aload 0
invokestatic com.sun.glass.ui.PlatformFactory.getPlatformFactory:()Lcom/sun/glass/ui/PlatformFactory;
aload 0
invokevirtual com.sun.glass.ui.PlatformFactory.createMenuDelegate:(Lcom/sun/glass/ui/Menu;)Lcom/sun/glass/ui/delegate/MenuDelegate;
putfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
6: aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 1
iload 2
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.createMenu:(Ljava/lang/String;Z)Z
ifne 8
7: new java.lang.RuntimeException
dup
ldc "Menu creation error."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: com.sun.glass.ui.Menu java.lang.String int
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/Menu;
0 9 1 title Ljava/lang/String;
0 9 2 enabled Z
MethodParameters:
Name Flags
title
enabled
public java.lang.String ();
descriptor: ()Ljava/lang/String;
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.Menu.title:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/Menu;
public void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, 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.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 1
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.setTitle:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
aload 1
putfield com.sun.glass.ui.Menu.title:Ljava/lang/String;
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/glass/ui/Menu;
0 4 1 title Ljava/lang/String;
MethodParameters:
Name Flags
title
public boolean ();
descriptor: ()Z
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.Menu.enabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/Menu;
public void (boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, 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.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
iload 1
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.setEnabled:(Z)Z
ifeq 3
2: aload 0
iload 1
putfield com.sun.glass.ui.Menu.enabled:Z
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/glass/ui/Menu;
0 4 1 enabled Z
MethodParameters:
Name Flags
enabled
public boolean (com.sun.glass.ui.Pixels);
descriptor: (Lcom/sun/glass/ui/Pixels;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, 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.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 1
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.setPixels:(Lcom/sun/glass/ui/Pixels;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/Menu;
0 2 1 pixels Lcom/sun/glass/ui/Pixels;
MethodParameters:
Name Flags
pixels
public java.util.List<java.lang.Object> getItems();
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.Menu.items: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/Menu;
Signature: ()Ljava/util/List<Ljava/lang/Object;>;
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.Menu.items:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokevirtual com.sun.glass.ui.Menu.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/Menu;
0 3 1 menu Lcom/sun/glass/ui/Menu;
MethodParameters:
Name Flags
menu
public void (com.sun.glass.ui.MenuItem);
descriptor: (Lcom/sun/glass/ui/MenuItem;)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.Menu.items:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokevirtual com.sun.glass.ui.Menu.insert:(Lcom/sun/glass/ui/MenuItem;I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/Menu;
0 3 1 item Lcom/sun/glass/ui/MenuItem;
MethodParameters:
Name Flags
item
public void (com.sun.glass.ui.Menu, int);
descriptor: (Lcom/sun/glass/ui/Menu;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.sun.glass.ui.Application.checkEventThread:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
dup
astore 3
monitorenter
4: iload 2
iflt 5
iload 2
aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmple 6
5: StackMap locals: java.util.List
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.glass.ui.Menu.getDelegate:()Lcom/sun/glass/ui/delegate/MenuDelegate;
astore 4
start local 4 7: aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 4
iload 2
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.insert:(Lcom/sun/glass/ui/delegate/MenuDelegate;I)Z
ifeq 9
8: aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
iload 2
aload 1
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
end local 4 9: StackMap locals:
StackMap stack:
aload 3
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 3
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/glass/ui/Menu;
0 14 1 menu Lcom/sun/glass/ui/Menu;
0 14 2 pos I
7 9 4 menuDelegate Lcom/sun/glass/ui/delegate/MenuDelegate;
Exception table:
from to target type
4 10 11 any
11 12 11 any
Exceptions:
throws java.lang.IndexOutOfBoundsException
MethodParameters:
Name Flags
menu
pos
public void (com.sun.glass.ui.MenuItem, int);
descriptor: (Lcom/sun/glass/ui/MenuItem;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, 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.Menu.items:Ljava/util/List;
dup
astore 3
monitorenter
2: iload 2
iflt 3
iload 2
aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmple 4
3: StackMap locals: java.util.List
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ifnull 5
aload 1
invokevirtual com.sun.glass.ui.MenuItem.getDelegate:()Lcom/sun/glass/ui/delegate/MenuItemDelegate;
goto 6
StackMap locals:
StackMap stack:
5: aconst_null
StackMap locals:
StackMap stack: com.sun.glass.ui.delegate.MenuItemDelegate
6: astore 4
start local 4 7: aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 4
iload 2
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.insert:(Lcom/sun/glass/ui/delegate/MenuItemDelegate;I)Z
ifeq 9
8: aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
iload 2
aload 1
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
end local 4 9: StackMap locals:
StackMap stack:
aload 3
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 3
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/glass/ui/Menu;
0 14 1 item Lcom/sun/glass/ui/MenuItem;
0 14 2 pos I
7 9 4 itemDelegate Lcom/sun/glass/ui/delegate/MenuItemDelegate;
Exception table:
from to target type
2 10 11 any
11 12 11 any
Exceptions:
throws java.lang.IndexOutOfBoundsException
MethodParameters:
Name Flags
item
pos
public void (int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, 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.Menu.items:Ljava/util/List;
dup
astore 2
monitorenter
2: aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: aload 3
getstatic com.sun.glass.ui.MenuItem.Separator:Lcom/sun/glass/ui/MenuItem;
if_acmpne 7
5: aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aconst_null
iload 1
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.remove:(Lcom/sun/glass/ui/delegate/MenuItemDelegate;I)Z
istore 4
6: goto 11
StackMap locals: java.util.List java.lang.Object int
StackMap stack:
7: aload 3
instanceof com.sun.glass.ui.MenuItem
ifeq 10
8: aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 3
checkcast com.sun.glass.ui.MenuItem
invokevirtual com.sun.glass.ui.MenuItem.getDelegate:()Lcom/sun/glass/ui/delegate/MenuItemDelegate;
iload 1
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.remove:(Lcom/sun/glass/ui/delegate/MenuItemDelegate;I)Z
istore 4
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
aload 3
checkcast com.sun.glass.ui.Menu
invokevirtual com.sun.glass.ui.Menu.getDelegate:()Lcom/sun/glass/ui/delegate/MenuDelegate;
iload 1
invokeinterface com.sun.glass.ui.delegate.MenuDelegate.remove:(Lcom/sun/glass/ui/delegate/MenuDelegate;I)Z
istore 4
11: StackMap locals:
StackMap stack:
iload 4
ifeq 13
12: aload 0
getfield com.sun.glass.ui.Menu.items:Ljava/util/List;
iload 1
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 4 end local 3 13: StackMap locals:
StackMap stack:
aload 2
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 2
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/glass/ui/Menu;
0 18 1 pos I
3 13 3 item Ljava/lang/Object;
4 13 4 success Z
Exception table:
from to target type
2 14 15 any
15 16 15 any
Exceptions:
throws java.lang.IndexOutOfBoundsException
MethodParameters:
Name Flags
pos
com.sun.glass.ui.delegate.MenuDelegate ();
descriptor: ()Lcom/sun/glass/ui/delegate/MenuDelegate;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.Menu.delegate:Lcom/sun/glass/ui/delegate/MenuDelegate;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/Menu;
protected void ();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.Menu.eventHandler:Lcom/sun/glass/ui/Menu$EventHandler;
ifnull 2
1: aload 0
getfield com.sun.glass.ui.Menu.eventHandler:Lcom/sun/glass/ui/Menu$EventHandler;
aload 0
invokestatic java.lang.System.nanoTime:()J
invokevirtual com.sun.glass.ui.Menu$EventHandler.handleMenuOpening:(Lcom/sun/glass/ui/Menu;J)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/Menu;
protected void ();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.Menu.eventHandler:Lcom/sun/glass/ui/Menu$EventHandler;
ifnull 2
1: aload 0
getfield com.sun.glass.ui.Menu.eventHandler:Lcom/sun/glass/ui/Menu$EventHandler;
aload 0
invokestatic java.lang.System.nanoTime:()J
invokevirtual com.sun.glass.ui.Menu$EventHandler.handleMenuClosed:(Lcom/sun/glass/ui/Menu;J)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/Menu;
}
SourceFile: "Menu.java"
NestMembers:
com.sun.glass.ui.Menu$EventHandler
InnerClasses:
public EventHandler = com.sun.glass.ui.Menu$EventHandler of com.sun.glass.ui.Menu