class com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager
super_class: java.lang.Object
{
private static final int FIRST_ID;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int LAST_ID;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 65535
private static java.util.List<java.lang.Integer> freeList;
descriptor: Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/List<Ljava/lang/Integer;>;
private static final java.util.Map<java.lang.Integer, com.sun.glass.ui.win.WinMenuItemDelegate> map;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Lcom/sun/glass/ui/win/WinMenuItemDelegate;>;
private static int nextID;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.freeList:Ljava/util/List;
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
2: putstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.map:Ljava/util/Map;
3: iconst_1
putstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.nextID:I
return
LocalVariableTable:
Start End Slot Name Signature
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/sun/glass/ui/win/WinMenuItemDelegate$CommandIDManager;
public static synchronized int getID(com.sun.glass.ui.win.WinMenuItemDelegate);
descriptor: (Lcom/sun/glass/ui/win/WinMenuItemDelegate;)I
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.freeList:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 6
1: getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.nextID:I
ldc 65535
if_icmple 3
2: iconst_1
putstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.nextID:I
3: StackMap locals:
StackMap stack:
getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.nextID:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 1
start local 1 4: getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.nextID:I
iconst_1
iadd
putstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.nextID:I
5: goto 7
end local 1 6: StackMap locals:
StackMap stack:
getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.freeList:Ljava/util/List;
getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.freeList:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast java.lang.Integer
astore 1
start local 1 7: StackMap locals: java.lang.Integer
StackMap stack:
getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.map:Ljava/util/Map;
aload 1
aload 0
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 1
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 menu Lcom/sun/glass/ui/win/WinMenuItemDelegate;
4 6 1 id Ljava/lang/Integer;
7 9 1 id Ljava/lang/Integer;
MethodParameters:
Name Flags
menu
public static synchronized void freeID(int);
descriptor: (I)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 1
start local 1 1: getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 3
2: getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.freeList:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals: java.lang.Integer
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cmdID I
1 4 1 id Ljava/lang/Integer;
MethodParameters:
Name Flags
cmdID
public static com.sun.glass.ui.win.WinMenuItemDelegate getHandler(int);
descriptor: (I)Lcom/sun/glass/ui/win/WinMenuItemDelegate;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager.map:Ljava/util/Map;
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.glass.ui.win.WinMenuItemDelegate
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cmdID I
MethodParameters:
Name Flags
cmdID
}
SourceFile: "WinMenuItemDelegate.java"
NestHost: com.sun.glass.ui.win.WinMenuItemDelegate
InnerClasses:
CommandIDManager = com.sun.glass.ui.win.WinMenuItemDelegate$CommandIDManager of com.sun.glass.ui.win.WinMenuItemDelegate