class javax.swing.text.JTextComponent$DefaultKeymap implements javax.swing.text.Keymap
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.JTextComponent$DefaultKeymap
super_class: java.lang.Object
{
java.lang.String nm;
descriptor: Ljava/lang/String;
flags: (0x0000)
javax.swing.text.Keymap parent;
descriptor: Ljavax/swing/text/Keymap;
flags: (0x0000)
java.util.Hashtable<javax.swing.KeyStroke, javax.swing.Action> bindings;
descriptor: Ljava/util/Hashtable;
flags: (0x0000)
Signature: Ljava/util/Hashtable<Ljavax/swing/KeyStroke;Ljavax/swing/Action;>;
javax.swing.Action defaultAction;
descriptor: Ljavax/swing/Action;
flags: (0x0000)
void <init>(java.lang.String, javax.swing.text.Keymap);
descriptor: (Ljava/lang/String;Ljavax/swing/text/Keymap;)V
flags: (0x0000)
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
aload 1
putfield javax.swing.text.JTextComponent$DefaultKeymap.nm:Ljava/lang/String;
2: aload 0
aload 2
putfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
3: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 5 1 nm Ljava/lang/String;
0 5 2 parent Ljavax/swing/text/Keymap;
MethodParameters:
Name Flags
nm
parent
public javax.swing.Action getDefaultAction();
descriptor: ()Ljavax/swing/Action;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.defaultAction:Ljavax/swing/Action;
ifnull 2
1: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.defaultAction:Ljavax/swing/Action;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
ifnull 3
aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
invokeinterface javax.swing.text.Keymap.getDefaultAction:()Ljavax/swing/Action;
goto 4
StackMap locals:
StackMap stack:
3: aconst_null
StackMap locals:
StackMap stack: javax.swing.Action
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
public void setDefaultAction(javax.swing.Action);
descriptor: (Ljavax/swing/Action;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield javax.swing.text.JTextComponent$DefaultKeymap.defaultAction:Ljavax/swing/Action;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 2 1 a Ljavax/swing/Action;
MethodParameters:
Name Flags
a
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.nm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
public javax.swing.Action getAction(javax.swing.KeyStroke);
descriptor: (Ljavax/swing/KeyStroke;)Ljavax/swing/Action;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.Action
astore 2
start local 2 1: aload 2
ifnonnull 3
aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
ifnull 3
2: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
aload 1
invokeinterface javax.swing.text.Keymap.getAction:(Ljavax/swing/KeyStroke;)Ljavax/swing/Action;
astore 2
3: StackMap locals: javax.swing.Action
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 4 1 key Ljavax/swing/KeyStroke;
1 4 2 a Ljavax/swing/Action;
MethodParameters:
Name Flags
key
public javax.swing.KeyStroke[] getBoundKeyStrokes();
descriptor: ()[Ljavax/swing/KeyStroke;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.size:()I
anewarray javax.swing.KeyStroke
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.keys:()Ljava/util/Enumeration;
astore 3
start local 3 3: goto 5
4: StackMap locals: javax.swing.KeyStroke[] int java.util.Enumeration
StackMap stack:
aload 1
iload 2
iinc 2 1
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.swing.KeyStroke
aastore
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
end local 3 6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
1 7 1 keys [Ljavax/swing/KeyStroke;
2 7 2 i I
3 6 3 e Ljava/util/Enumeration<Ljavax/swing/KeyStroke;>;
public javax.swing.Action[] getBoundActions();
descriptor: ()[Ljavax/swing/Action;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.size:()I
anewarray javax.swing.Action
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.elements:()Ljava/util/Enumeration;
astore 3
start local 3 3: goto 5
4: StackMap locals: javax.swing.Action[] int java.util.Enumeration
StackMap stack:
aload 1
iload 2
iinc 2 1
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.swing.Action
aastore
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
end local 3 6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
1 7 1 actions [Ljavax/swing/Action;
2 7 2 i I
3 6 3 e Ljava/util/Enumeration<Ljavax/swing/Action;>;
public javax.swing.KeyStroke[] getKeyStrokesForAction(javax.swing.Action);
descriptor: (Ljavax/swing/Action;)[Ljavax/swing/KeyStroke;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aconst_null
astore 3
start local 3 4: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.keys:()Ljava/util/Enumeration;
astore 4
start local 4 5: goto 11
6: StackMap locals: javax.swing.KeyStroke[] java.util.Vector java.util.Enumeration
StackMap stack:
aload 4
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.swing.KeyStroke
astore 5
start local 5 7: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
aload 5
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
aload 1
if_acmpne 11
8: aload 3
ifnonnull 10
9: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 3
10: StackMap locals: javax.swing.KeyStroke
StackMap stack:
aload 3
aload 5
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 5 11: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 6
end local 4 12: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
ifnull 45
13: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
aload 1
invokeinterface javax.swing.text.Keymap.getKeyStrokesForAction:(Ljavax/swing/Action;)[Ljavax/swing/KeyStroke;
astore 4
start local 4 14: aload 4
ifnull 45
15: iconst_0
istore 5
start local 5 16: aload 4
arraylength
iconst_1
isub
istore 6
start local 6 17: goto 22
18: StackMap locals: javax.swing.text.JTextComponent$DefaultKeymap javax.swing.Action javax.swing.KeyStroke[] java.util.Vector javax.swing.KeyStroke[] int int
StackMap stack:
aload 0
aload 4
iload 6
aaload
invokevirtual javax.swing.text.JTextComponent$DefaultKeymap.isLocallyDefined:(Ljavax/swing/KeyStroke;)Z
ifeq 21
19: aload 4
iload 6
aconst_null
aastore
20: iinc 5 1
21: StackMap locals:
StackMap stack:
iinc 6 -1
22: StackMap locals:
StackMap stack:
iload 6
ifge 18
end local 6 23: iload 5
ifle 33
iload 5
aload 4
arraylength
if_icmpge 33
24: aload 3
ifnonnull 26
25: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 3
26: StackMap locals:
StackMap stack:
aload 4
arraylength
iconst_1
isub
istore 6
start local 6 27: goto 31
28: StackMap locals: int
StackMap stack:
aload 4
iload 6
aaload
ifnull 30
29: aload 3
aload 4
iload 6
aaload
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
30: StackMap locals:
StackMap stack:
iinc 6 -1
31: StackMap locals:
StackMap stack:
iload 6
ifge 28
end local 6 32: goto 45
33: StackMap locals:
StackMap stack:
iload 5
ifne 45
34: aload 3
ifnonnull 37
35: aload 4
astore 2
36: goto 45
37: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.util.Vector.size:()I
38: aload 4
arraylength
39: iadd
anewarray javax.swing.KeyStroke
astore 2
40: aload 3
aload 2
invokevirtual java.util.Vector.copyInto:([Ljava/lang/Object;)V
41: aload 4
iconst_0
aload 2
42: aload 3
invokevirtual java.util.Vector.size:()I
aload 4
arraylength
43: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
44: aconst_null
astore 3
end local 5 end local 4 45: StackMap locals:
StackMap stack:
aload 3
ifnull 48
46: aload 3
invokevirtual java.util.Vector.size:()I
anewarray javax.swing.KeyStroke
astore 2
47: aload 3
aload 2
invokevirtual java.util.Vector.copyInto:([Ljava/lang/Object;)V
48: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 49 1 a Ljavax/swing/Action;
3 49 2 retValue [Ljavax/swing/KeyStroke;
4 49 3 keyStrokes Ljava/util/Vector<Ljavax/swing/KeyStroke;>;
5 12 4 keys Ljava/util/Enumeration<Ljavax/swing/KeyStroke;>;
7 11 5 key Ljavax/swing/KeyStroke;
14 45 4 pStrokes [Ljavax/swing/KeyStroke;
16 45 5 rCount I
17 23 6 counter I
27 32 6 counter I
MethodParameters:
Name Flags
a
public boolean isLocallyDefined(javax.swing.KeyStroke);
descriptor: (Ljavax/swing/KeyStroke;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 1 1 key Ljavax/swing/KeyStroke;
MethodParameters:
Name Flags
key
public void addActionForKeyStroke(javax.swing.KeyStroke, javax.swing.Action);
descriptor: (Ljavax/swing/KeyStroke;Ljavax/swing/Action;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
aload 1
aload 2
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 2 1 key Ljavax/swing/KeyStroke;
0 2 2 a Ljavax/swing/Action;
MethodParameters:
Name Flags
key
a
public void removeKeyStrokeBinding(javax.swing.KeyStroke);
descriptor: (Ljavax/swing/KeyStroke;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 2 1 key Ljavax/swing/KeyStroke;
MethodParameters:
Name Flags
key
public void removeBindings();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
public javax.swing.text.Keymap getResolveParent();
descriptor: ()Ljavax/swing/text/Keymap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
public void setResolveParent(javax.swing.text.Keymap);
descriptor: (Ljavax/swing/text/Keymap;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield javax.swing.text.JTextComponent$DefaultKeymap.parent:Ljavax/swing/text/Keymap;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
0 2 1 parent Ljavax/swing/text/Keymap;
MethodParameters:
Name Flags
parent
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Keymap["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.nm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.swing.text.JTextComponent$DefaultKeymap.bindings:Ljava/util/Hashtable;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$DefaultKeymap;
}
SourceFile: "JTextComponent.java"
NestHost: javax.swing.text.JTextComponent
InnerClasses:
DefaultKeymap = javax.swing.text.JTextComponent$DefaultKeymap of javax.swing.text.JTextComponent