class javax.swing.KeyboardManager
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.KeyboardManager
super_class: java.lang.Object
{
static javax.swing.KeyboardManager currentManager;
descriptor: Ljavax/swing/KeyboardManager;
flags: (0x0008) ACC_STATIC
java.util.Hashtable<java.awt.Container, java.util.Hashtable> containerMap;
descriptor: Ljava/util/Hashtable;
flags: (0x0000)
Signature: Ljava/util/Hashtable<Ljava/awt/Container;Ljava/util/Hashtable;>;
java.util.Hashtable<javax.swing.KeyboardManager$ComponentKeyStrokePair, java.awt.Container> componentKeyStrokeMap;
descriptor: Ljava/util/Hashtable;
flags: (0x0000)
Signature: Ljava/util/Hashtable<Ljavax/swing/KeyboardManager$ComponentKeyStrokePair;Ljava/awt/Container;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new javax.swing.KeyboardManager
dup
invokespecial javax.swing.KeyboardManager.<init>:()V
putstatic javax.swing.KeyboardManager.currentManager:Ljavax/swing/KeyboardManager;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
2: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield javax.swing.KeyboardManager.componentKeyStrokeMap:Ljava/util/Hashtable;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/KeyboardManager;
public static javax.swing.KeyboardManager getCurrentManager();
descriptor: ()Ljavax/swing/KeyboardManager;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic javax.swing.KeyboardManager.currentManager:Ljavax/swing/KeyboardManager;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static void setCurrentManager(javax.swing.KeyboardManager);
descriptor: (Ljavax/swing/KeyboardManager;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic javax.swing.KeyboardManager.currentManager:Ljavax/swing/KeyboardManager;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 km Ljavax/swing/KeyboardManager;
MethodParameters:
Name Flags
km
public void registerKeyStroke(javax.swing.KeyStroke, javax.swing.JComponent);
descriptor: (Ljavax/swing/KeyStroke;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic javax.swing.KeyboardManager.getTopAncestor:(Ljavax/swing/JComponent;)Ljava/awt/Container;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: return
3: StackMap locals: java.awt.Container
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
astore 4
start local 4 4: aload 4
ifnonnull 6
5: aload 0
aload 3
invokevirtual javax.swing.KeyboardManager.registerNewTopContainer:(Ljava/awt/Container;)Ljava/util/Hashtable;
astore 4
6: StackMap locals: java.util.Hashtable
StackMap stack:
aload 4
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 7: aload 5
ifnonnull 10
8: aload 4
aload 1
aload 2
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: goto 24
StackMap locals: java.lang.Object
StackMap stack:
10: aload 5
instanceof java.util.Vector
ifeq 15
11: aload 5
checkcast java.util.Vector
astore 6
start local 6 12: aload 6
aload 2
invokevirtual java.util.Vector.contains:(Ljava/lang/Object;)Z
ifne 24
13: aload 6
aload 2
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 6 14: goto 24
StackMap locals:
StackMap stack:
15: aload 5
instanceof javax.swing.JComponent
ifeq 22
16: aload 5
aload 2
if_acmpeq 24
17: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 6
start local 6 18: aload 6
aload 5
checkcast javax.swing.JComponent
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
19: aload 6
aload 2
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
20: aload 4
aload 1
aload 6
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 21: goto 24
22: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Unexpected condition in registerKeyStroke"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
23: invokestatic java.lang.Thread.dumpStack:()V
24: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.componentKeyStrokeMap:Ljava/util/Hashtable;
new javax.swing.KeyboardManager$ComponentKeyStrokePair
dup
aload 0
aload 2
aload 1
invokespecial javax.swing.KeyboardManager$ComponentKeyStrokePair.<init>:(Ljavax/swing/KeyboardManager;Ljava/lang/Object;Ljava/lang/Object;)V
aload 3
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
25: aload 3
instanceof sun.awt.EmbeddedFrame
ifeq 27
26: aload 3
checkcast sun.awt.EmbeddedFrame
aload 1
invokevirtual sun.awt.EmbeddedFrame.registerAccelerator:(Ljava/awt/AWTKeyStroke;)V
27: 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 28 0 this Ljavax/swing/KeyboardManager;
0 28 1 k Ljavax/swing/KeyStroke;
0 28 2 c Ljavax/swing/JComponent;
1 28 3 topContainer Ljava/awt/Container;
4 28 4 keyMap Ljava/util/Hashtable;
7 28 5 tmp Ljava/lang/Object;
12 14 6 v Ljava/util/Vector;
18 21 6 v Ljava/util/Vector<Ljavax/swing/JComponent;>;
MethodParameters:
Name Flags
k
c
private static java.awt.Container getTopAncestor(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljava/awt/Container;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.JComponent.getParent:()Ljava/awt/Container;
astore 1
start local 1 1: goto 6
2: StackMap locals: java.awt.Container
StackMap stack:
aload 1
instanceof java.awt.Window
ifeq 3
aload 1
checkcast java.awt.Window
invokevirtual java.awt.Window.isFocusableWindow:()Z
ifne 4
3: StackMap locals:
StackMap stack:
aload 1
instanceof java.applet.Applet
ifne 4
aload 1
instanceof javax.swing.JInternalFrame
ifeq 5
4: StackMap locals:
StackMap stack:
aload 1
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Container.getParent:()Ljava/awt/Container;
astore 1
StackMap locals:
StackMap stack:
6: aload 1
ifnonnull 2
end local 1 7: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 c Ljavax/swing/JComponent;
1 7 1 p Ljava/awt/Container;
MethodParameters:
Name Flags
c
public void unregisterKeyStroke(javax.swing.KeyStroke, javax.swing.JComponent);
descriptor: (Ljavax/swing/KeyStroke;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: new javax.swing.KeyboardManager$ComponentKeyStrokePair
dup
aload 0
aload 2
aload 1
invokespecial javax.swing.KeyboardManager$ComponentKeyStrokePair.<init>:(Ljavax/swing/KeyboardManager;Ljava/lang/Object;Ljava/lang/Object;)V
astore 3
start local 3 1: aload 0
getfield javax.swing.KeyboardManager.componentKeyStrokeMap:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.awt.Container
astore 4
start local 4 2: aload 4
ifnonnull 4
3: return
4: StackMap locals: javax.swing.KeyboardManager$ComponentKeyStrokePair java.awt.Container
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 4
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
astore 5
start local 5 5: aload 5
ifnonnull 8
6: invokestatic java.lang.Thread.dumpStack:()V
7: return
8: StackMap locals: java.util.Hashtable
StackMap stack:
aload 5
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 9: aload 6
ifnonnull 12
10: invokestatic java.lang.Thread.dumpStack:()V
11: return
12: StackMap locals: java.lang.Object
StackMap stack:
aload 6
instanceof javax.swing.JComponent
ifeq 15
aload 6
aload 2
if_acmpne 15
13: aload 5
aload 1
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
14: goto 20
StackMap locals:
StackMap stack:
15: aload 6
instanceof java.util.Vector
ifeq 20
16: aload 6
checkcast java.util.Vector
astore 7
start local 7 17: aload 7
aload 2
invokevirtual java.util.Vector.removeElement:(Ljava/lang/Object;)Z
pop
18: aload 7
invokevirtual java.util.Vector.isEmpty:()Z
ifeq 20
19: aload 5
aload 1
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 20: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.Hashtable.isEmpty:()Z
ifeq 22
21: aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 4
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
22: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.componentKeyStrokeMap:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
23: aload 4
instanceof sun.awt.EmbeddedFrame
ifeq 25
24: aload 4
checkcast sun.awt.EmbeddedFrame
aload 1
invokevirtual sun.awt.EmbeddedFrame.unregisterAccelerator:(Ljava/awt/AWTKeyStroke;)V
25: StackMap locals:
StackMap stack:
return
end local 6 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 26 0 this Ljavax/swing/KeyboardManager;
0 26 1 ks Ljavax/swing/KeyStroke;
0 26 2 c Ljavax/swing/JComponent;
1 26 3 ckp Ljavax/swing/KeyboardManager$ComponentKeyStrokePair;
2 26 4 topContainer Ljava/awt/Container;
5 26 5 keyMap Ljava/util/Hashtable;
9 26 6 tmp Ljava/lang/Object;
17 20 7 v Ljava/util/Vector;
MethodParameters:
Name Flags
ks
c
public boolean fireKeyboardAction(java.awt.event.KeyEvent, boolean, java.awt.Container);
descriptor: (Ljava/awt/event/KeyEvent;ZLjava/awt/Container;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.awt.event.KeyEvent.isConsumed:()Z
ifeq 3
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Aquired pre-used event!"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: invokestatic java.lang.Thread.dumpStack:()V
3: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 4: aload 1
invokevirtual java.awt.event.KeyEvent.getID:()I
sipush 400
if_icmpne 7
5: aload 1
invokevirtual java.awt.event.KeyEvent.getKeyChar:()C
invokestatic javax.swing.KeyStroke.getKeyStroke:(C)Ljavax/swing/KeyStroke;
astore 4
start local 4 6: goto 15
end local 4 7: StackMap locals: javax.swing.KeyboardManager java.awt.event.KeyEvent int java.awt.Container top javax.swing.KeyStroke
StackMap stack:
invokestatic sun.awt.AWTAccessor.getKeyEventAccessor:()Lsun/awt/AWTAccessor$KeyEventAccessor;
aload 1
invokeinterface sun.awt.AWTAccessor$KeyEventAccessor.getExtendedKeyCode:(Ljava/awt/event/KeyEvent;)I
istore 6
start local 6 8: aload 1
invokevirtual java.awt.event.KeyEvent.getKeyCode:()I
iload 6
if_icmpeq 12
9: iload 6
aload 1
invokevirtual java.awt.event.KeyEvent.getModifiers:()I
iload 2
ifeq 10
iconst_0
goto 11
StackMap locals: javax.swing.KeyboardManager java.awt.event.KeyEvent int java.awt.Container top javax.swing.KeyStroke int
StackMap stack: int int
10: iconst_1
StackMap locals: javax.swing.KeyboardManager java.awt.event.KeyEvent int java.awt.Container top javax.swing.KeyStroke int
StackMap stack: int int int
11: invokestatic javax.swing.KeyStroke.getKeyStroke:(IIZ)Ljavax/swing/KeyStroke;
astore 5
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.event.KeyEvent.getKeyCode:()I
aload 1
invokevirtual java.awt.event.KeyEvent.getModifiers:()I
iload 2
ifeq 13
iconst_0
goto 14
StackMap locals: javax.swing.KeyboardManager java.awt.event.KeyEvent int java.awt.Container top javax.swing.KeyStroke int
StackMap stack: int int
13: iconst_1
StackMap locals: javax.swing.KeyboardManager java.awt.event.KeyEvent int java.awt.Container top javax.swing.KeyStroke int
StackMap stack: int int int
14: invokestatic javax.swing.KeyStroke.getKeyStroke:(IIZ)Ljavax/swing/KeyStroke;
astore 4
end local 6 start local 4 15: StackMap locals: javax.swing.KeyboardManager java.awt.event.KeyEvent int java.awt.Container javax.swing.KeyStroke javax.swing.KeyStroke
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
astore 6
start local 6 16: aload 6
ifnull 44
17: aconst_null
astore 7
start local 7 18: aload 5
ifnull 22
19: aload 6
aload 5
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 7
20: aload 7
ifnull 22
21: aload 5
astore 4
22: StackMap locals: java.util.Hashtable java.lang.Object
StackMap stack:
aload 7
ifnonnull 24
23: aload 6
aload 4
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 7
24: StackMap locals:
StackMap stack:
aload 7
ifnull 44
25: aload 7
instanceof javax.swing.JComponent
ifeq 30
26: aload 7
checkcast javax.swing.JComponent
astore 8
start local 8 27: aload 8
invokevirtual javax.swing.JComponent.isShowing:()Z
ifeq 44
aload 8
invokevirtual javax.swing.JComponent.isEnabled:()Z
ifeq 44
28: aload 0
aload 8
aload 4
aload 1
iload 2
invokevirtual javax.swing.KeyboardManager.fireBinding:(Ljavax/swing/JComponent;Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;Z)V
end local 8 29: goto 44
StackMap locals:
StackMap stack:
30: aload 7
instanceof java.util.Vector
ifeq 42
31: aload 7
checkcast java.util.Vector
astore 8
start local 8 32: aload 8
invokevirtual java.util.Vector.size:()I
iconst_1
isub
istore 9
start local 9 33: goto 40
34: StackMap locals: java.util.Vector int
StackMap stack:
aload 8
iload 9
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.swing.JComponent
astore 10
start local 10 35: aload 10
invokevirtual javax.swing.JComponent.isShowing:()Z
ifeq 39
aload 10
invokevirtual javax.swing.JComponent.isEnabled:()Z
ifeq 39
36: aload 0
aload 10
aload 4
aload 1
iload 2
invokevirtual javax.swing.KeyboardManager.fireBinding:(Ljavax/swing/JComponent;Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;Z)V
37: aload 1
invokevirtual java.awt.event.KeyEvent.isConsumed:()Z
ifeq 39
38: iconst_1
ireturn
end local 10 39: StackMap locals:
StackMap stack:
iinc 9 -1
StackMap locals:
StackMap stack:
40: iload 9
ifge 34
end local 9 end local 8 41: goto 44
42: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Unexpected condition in fireKeyboardAction "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: invokestatic java.lang.Thread.dumpStack:()V
end local 7 44: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.event.KeyEvent.isConsumed:()Z
ifeq 46
45: iconst_1
ireturn
46: StackMap locals:
StackMap stack:
aload 6
ifnull 60
47: aload 6
ldc Ljavax/swing/JMenuBar;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Vector
astore 7
start local 7 48: aload 7
ifnull 60
49: aload 7
invokevirtual java.util.Vector.elements:()Ljava/util/Enumeration;
astore 8
start local 8 50: goto 59
51: StackMap locals: java.util.Vector java.util.Enumeration
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.swing.JMenuBar
astore 9
start local 9 52: aload 9
invokevirtual javax.swing.JMenuBar.isShowing:()Z
ifeq 59
aload 9
invokevirtual javax.swing.JMenuBar.isEnabled:()Z
ifeq 59
53: aload 4
aload 5
invokevirtual javax.swing.KeyStroke.equals:(Ljava/lang/Object;)Z
ifne 55
54: aload 0
aload 9
aload 5
aload 1
iload 2
invokevirtual javax.swing.KeyboardManager.fireBinding:(Ljavax/swing/JComponent;Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;Z)V
55: StackMap locals: javax.swing.JMenuBar
StackMap stack:
aload 4
aload 5
invokevirtual javax.swing.KeyStroke.equals:(Ljava/lang/Object;)Z
ifne 56
aload 1
invokevirtual java.awt.event.KeyEvent.isConsumed:()Z
ifne 57
56: StackMap locals:
StackMap stack:
aload 0
aload 9
aload 4
aload 1
iload 2
invokevirtual javax.swing.KeyboardManager.fireBinding:(Ljavax/swing/JComponent;Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;Z)V
57: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.event.KeyEvent.isConsumed:()Z
ifeq 59
58: iconst_1
ireturn
end local 9 59: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 51
end local 8 end local 7 60: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.event.KeyEvent.isConsumed:()Z
ireturn
end local 6 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 61 0 this Ljavax/swing/KeyboardManager;
0 61 1 e Ljava/awt/event/KeyEvent;
0 61 2 pressed Z
0 61 3 topAncestor Ljava/awt/Container;
6 7 4 ks Ljavax/swing/KeyStroke;
15 61 4 ks Ljavax/swing/KeyStroke;
4 61 5 ksE Ljavax/swing/KeyStroke;
8 15 6 ekc I
16 61 6 keyMap Ljava/util/Hashtable;
18 44 7 tmp Ljava/lang/Object;
27 29 8 c Ljavax/swing/JComponent;
32 41 8 v Ljava/util/Vector;
33 41 9 counter I
35 39 10 c Ljavax/swing/JComponent;
48 60 7 v Ljava/util/Vector;
50 60 8 iter Ljava/util/Enumeration;
52 59 9 mb Ljavax/swing/JMenuBar;
MethodParameters:
Name Flags
e
pressed
topAncestor
void fireBinding(javax.swing.JComponent, javax.swing.KeyStroke, java.awt.event.KeyEvent, boolean);
descriptor: (Ljavax/swing/JComponent;Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;Z)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 2
aload 3
iconst_2
1: iload 4
2: invokevirtual javax.swing.JComponent.processKeyBinding:(Ljavax/swing/KeyStroke;Ljava/awt/event/KeyEvent;IZ)Z
3: ifeq 5
4: aload 3
invokevirtual java.awt.event.KeyEvent.consume:()V
5: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/swing/KeyboardManager;
0 6 1 c Ljavax/swing/JComponent;
0 6 2 ks Ljavax/swing/KeyStroke;
0 6 3 e Ljava/awt/event/KeyEvent;
0 6 4 pressed Z
MethodParameters:
Name Flags
c
ks
e
pressed
public void (javax.swing.JMenuBar);
descriptor: (Ljavax/swing/JMenuBar;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic javax.swing.KeyboardManager.getTopAncestor:(Ljavax/swing/JComponent;)Ljava/awt/Container;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: java.awt.Container
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 2
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
astore 3
start local 3 4: aload 3
ifnonnull 6
5: aload 0
aload 2
invokevirtual javax.swing.KeyboardManager.registerNewTopContainer:(Ljava/awt/Container;)Ljava/util/Hashtable;
astore 3
6: StackMap locals: java.util.Hashtable
StackMap stack:
aload 3
ldc Ljavax/swing/JMenuBar;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Vector
astore 4
start local 4 7: aload 4
ifnonnull 10
8: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 4
9: aload 3
ldc Ljavax/swing/JMenuBar;
aload 4
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals: java.util.Vector
StackMap stack:
aload 4
aload 1
invokevirtual java.util.Vector.contains:(Ljava/lang/Object;)Z
ifne 12
11: aload 4
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/KeyboardManager;
0 13 1 mb Ljavax/swing/JMenuBar;
1 13 2 top Ljava/awt/Container;
4 13 3 keyMap Ljava/util/Hashtable;
7 13 4 menuBars Ljava/util/Vector;
MethodParameters:
Name Flags
mb
public void (javax.swing.JMenuBar);
descriptor: (Ljavax/swing/JMenuBar;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic javax.swing.KeyboardManager.getTopAncestor:(Ljavax/swing/JComponent;)Ljava/awt/Container;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: java.awt.Container
StackMap stack:
aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 2
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
astore 3
start local 3 4: aload 3
ifnull 12
5: aload 3
ldc Ljavax/swing/JMenuBar;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Vector
astore 4
start local 4 6: aload 4
ifnull 12
7: aload 4
aload 1
invokevirtual java.util.Vector.removeElement:(Ljava/lang/Object;)Z
pop
8: aload 4
invokevirtual java.util.Vector.isEmpty:()Z
ifeq 12
9: aload 3
ldc Ljavax/swing/JMenuBar;
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 3
invokevirtual java.util.Hashtable.isEmpty:()Z
ifeq 12
11: aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 2
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 12: StackMap locals: java.util.Hashtable
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/KeyboardManager;
0 13 1 mb Ljavax/swing/JMenuBar;
1 13 2 topContainer Ljava/awt/Container;
4 13 3 keyMap Ljava/util/Hashtable;
6 12 4 v Ljava/util/Vector;
MethodParameters:
Name Flags
mb
protected java.util.Hashtable registerNewTopContainer(java.awt.Container);
descriptor: (Ljava/awt/Container;)Ljava/util/Hashtable;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
astore 2
start local 2 1: aload 0
getfield javax.swing.KeyboardManager.containerMap:Ljava/util/Hashtable;
aload 1
aload 2
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/KeyboardManager;
0 3 1 topContainer Ljava/awt/Container;
1 3 2 keyMap Ljava/util/Hashtable;
MethodParameters:
Name Flags
topContainer
}
SourceFile: "KeyboardManager.java"
NestMembers:
javax.swing.KeyboardManager$ComponentKeyStrokePair
InnerClasses:
ComponentKeyStrokePair = javax.swing.KeyboardManager$ComponentKeyStrokePair of javax.swing.KeyboardManager
public abstract KeyEventAccessor = sun.awt.AWTAccessor$KeyEventAccessor of sun.awt.AWTAccessor