class com.sun.glass.ui.monocle.KeyState
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.glass.ui.monocle.KeyState
super_class: java.lang.Object
{
private com.sun.glass.ui.monocle.IntSet keysPressed;
descriptor: Lcom/sun/glass/ui/monocle/IntSet;
flags: (0x0002) ACC_PRIVATE
private com.sun.glass.ui.monocle.MonocleWindow window;
descriptor: Lcom/sun/glass/ui/monocle/MonocleWindow;
flags: (0x0002) ACC_PRIVATE
private int modifiers;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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 com.sun.glass.ui.monocle.IntSet
dup
invokespecial com.sun.glass.ui.monocle.IntSet.<init>:()V
putfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/monocle/KeyState;
void clear();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
invokevirtual com.sun.glass.ui.monocle.IntSet.clear:()V
1: aload 0
iconst_0
putfield com.sun.glass.ui.monocle.KeyState.modifiers:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/monocle/KeyState;
void pressKey(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
iload 1
invokevirtual com.sun.glass.ui.monocle.IntSet.addInt:(I)V
1: aload 0
dup
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
iload 1
invokestatic com.sun.glass.ui.monocle.KeyState.getModifier:(I)I
ior
putfield com.sun.glass.ui.monocle.KeyState.modifiers:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/monocle/KeyState;
0 3 1 virtualKeyCode I
MethodParameters:
Name Flags
virtualKeyCode
void releaseKey(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
iload 1
invokevirtual com.sun.glass.ui.monocle.IntSet.removeInt:(I)V
1: aload 0
dup
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
iload 1
invokestatic com.sun.glass.ui.monocle.KeyState.getModifier:(I)I
iconst_m1
ixor
iand
putfield com.sun.glass.ui.monocle.KeyState.modifiers:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/glass/ui/monocle/KeyState;
0 3 1 virtualKeyCode I
MethodParameters:
Name Flags
virtualKeyCode
void copyTo(com.sun.glass.ui.monocle.KeyState);
descriptor: (Lcom/sun/glass/ui/monocle/KeyState;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
aload 1
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
invokevirtual com.sun.glass.ui.monocle.IntSet.copyTo:(Lcom/sun/glass/ui/monocle/IntSet;)V
1: aload 1
aload 0
getfield com.sun.glass.ui.monocle.KeyState.window:Lcom/sun/glass/ui/monocle/MonocleWindow;
putfield com.sun.glass.ui.monocle.KeyState.window:Lcom/sun/glass/ui/monocle/MonocleWindow;
2: aload 1
aload 0
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
putfield com.sun.glass.ui.monocle.KeyState.modifiers:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/glass/ui/monocle/KeyState;
0 4 1 target Lcom/sun/glass/ui/monocle/KeyState;
MethodParameters:
Name Flags
target
com.sun.glass.ui.monocle.IntSet getKeysPressed();
descriptor: ()Lcom/sun/glass/ui/monocle/IntSet;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/KeyState;
com.sun.glass.ui.monocle.MonocleWindow getWindow(boolean);
descriptor: (Z)Lcom/sun/glass/ui/monocle/MonocleWindow;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.window:Lcom/sun/glass/ui/monocle/MonocleWindow;
ifnull 1
iload 1
ifeq 4
1: StackMap locals:
StackMap stack:
aload 0
2: invokestatic com.sun.glass.ui.monocle.MonocleWindowManager.getInstance:()Lcom/sun/glass/ui/monocle/MonocleWindowManager;
invokevirtual com.sun.glass.ui.monocle.MonocleWindowManager.getFocusedWindow:()Lcom/sun/glass/ui/monocle/MonocleWindow;
3: putfield com.sun.glass.ui.monocle.KeyState.window:Lcom/sun/glass/ui/monocle/MonocleWindow;
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.KeyState.window:Lcom/sun/glass/ui/monocle/MonocleWindow;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/glass/ui/monocle/KeyState;
0 5 1 recalculateCache Z
MethodParameters:
Name Flags
recalculateCache
private static int getModifier(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
lookupswitch { // 5
16: 1
17: 2
18: 3
524: 5
768: 4
default: 6
}
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_4
ireturn
3: StackMap locals:
StackMap stack:
bipush 8
ireturn
4: StackMap locals:
StackMap stack:
bipush 16
ireturn
5: StackMap locals:
StackMap stack:
bipush 16
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 virtualKeyCode I
MethodParameters:
Name Flags
virtualKeyCode
int getModifiers();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/KeyState;
boolean isShiftPressed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
iconst_1
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/KeyState;
boolean isControlPressed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
iconst_4
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/KeyState;
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 "KeyState[modifiers="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.glass.ui.monocle.KeyState.modifiers:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",keys="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.sun.glass.ui.monocle.KeyState.keysPressed:Lcom/sun/glass/ui/monocle/IntSet;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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 Lcom/sun/glass/ui/monocle/KeyState;
}
SourceFile: "KeyState.java"