class sun.lwawt.macosx.CRobot implements java.awt.peer.RobotPeer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.lwawt.macosx.CRobot
super_class: java.lang.Object
{
private static final int MOUSE_LOCATION_UNKNOWN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private final sun.awt.CGraphicsDevice fDevice;
descriptor: Lsun/awt/CGraphicsDevice;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int mouseLastX;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int mouseLastY;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int mouseButtonsState;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.awt.Robot, sun.awt.CGraphicsDevice);
descriptor: (Ljava/awt/Robot;Lsun/awt/CGraphicsDevice;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
iconst_m1
putfield sun.lwawt.macosx.CRobot.mouseLastX:I
2: aload 0
iconst_m1
putfield sun.lwawt.macosx.CRobot.mouseLastY:I
3: aload 0
iconst_0
putfield sun.lwawt.macosx.CRobot.mouseButtonsState:I
4: aload 0
aload 2
putfield sun.lwawt.macosx.CRobot.fDevice:Lsun/awt/CGraphicsDevice;
5: aload 0
invokevirtual sun.lwawt.macosx.CRobot.initRobot:()V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/lwawt/macosx/CRobot;
0 7 1 r Ljava/awt/Robot;
0 7 2 d Lsun/awt/CGraphicsDevice;
MethodParameters:
Name Flags
r
d
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CRobot;
public void mouseMove(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
putfield sun.lwawt.macosx.CRobot.mouseLastX:I
1: aload 0
iload 2
putfield sun.lwawt.macosx.CRobot.mouseLastY:I
2: aload 0
aload 0
getfield sun.lwawt.macosx.CRobot.fDevice:Lsun/awt/CGraphicsDevice;
invokevirtual sun.awt.CGraphicsDevice.getCGDisplayID:()I
aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastX:I
aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastY:I
3: aload 0
getfield sun.lwawt.macosx.CRobot.mouseButtonsState:I
iconst_1
iconst_1
4: invokevirtual sun.lwawt.macosx.CRobot.mouseEvent:(IIIIZZ)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/lwawt/macosx/CRobot;
0 6 1 x I
0 6 2 y I
MethodParameters:
Name Flags
x
y
public void mousePress(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield sun.lwawt.macosx.CRobot.mouseButtonsState:I
iload 1
ior
putfield sun.lwawt.macosx.CRobot.mouseButtonsState:I
1: aload 0
invokevirtual sun.lwawt.macosx.CRobot.checkMousePos:()V
2: aload 0
aload 0
getfield sun.lwawt.macosx.CRobot.fDevice:Lsun/awt/CGraphicsDevice;
invokevirtual sun.awt.CGraphicsDevice.getCGDisplayID:()I
aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastX:I
aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastY:I
3: iload 1
iconst_1
iconst_0
4: invokevirtual sun.lwawt.macosx.CRobot.mouseEvent:(IIIIZZ)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/lwawt/macosx/CRobot;
0 6 1 buttons I
MethodParameters:
Name Flags
buttons
public void mouseRelease(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield sun.lwawt.macosx.CRobot.mouseButtonsState:I
iload 1
iconst_m1
ixor
iand
putfield sun.lwawt.macosx.CRobot.mouseButtonsState:I
1: aload 0
invokevirtual sun.lwawt.macosx.CRobot.checkMousePos:()V
2: aload 0
aload 0
getfield sun.lwawt.macosx.CRobot.fDevice:Lsun/awt/CGraphicsDevice;
invokevirtual sun.awt.CGraphicsDevice.getCGDisplayID:()I
aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastX:I
aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastY:I
3: iload 1
iconst_0
iconst_0
4: invokevirtual sun.lwawt.macosx.CRobot.mouseEvent:(IIIIZZ)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/lwawt/macosx/CRobot;
0 6 1 buttons I
MethodParameters:
Name Flags
buttons
private void checkMousePos();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastX:I
iconst_m1
if_icmpeq 2
1: aload 0
getfield sun.lwawt.macosx.CRobot.mouseLastY:I
iconst_m1
if_icmpne 16
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CRobot.fDevice:Lsun/awt/CGraphicsDevice;
invokevirtual sun.awt.CGraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
astore 1
start local 1 3: invokestatic sun.lwawt.macosx.CCursorManager.getInstance:()Lsun/lwawt/macosx/CCursorManager;
invokevirtual sun.lwawt.macosx.CCursorManager.getCursorPosition:()Ljava/awt/Point;
astore 2
start local 2 4: aload 2
getfield java.awt.Point.x:I
aload 1
getfield java.awt.Rectangle.x:I
if_icmpge 7
5: aload 2
aload 1
getfield java.awt.Rectangle.x:I
putfield java.awt.Point.x:I
6: goto 9
7: StackMap locals: java.awt.Rectangle java.awt.Point
StackMap stack:
aload 2
getfield java.awt.Point.x:I
aload 1
getfield java.awt.Rectangle.x:I
aload 1
getfield java.awt.Rectangle.width:I
iadd
if_icmple 9
8: aload 2
aload 1
getfield java.awt.Rectangle.x:I
aload 1
getfield java.awt.Rectangle.width:I
iadd
putfield java.awt.Point.x:I
9: StackMap locals:
StackMap stack:
aload 2
getfield java.awt.Point.y:I
aload 1
getfield java.awt.Rectangle.y:I
if_icmpge 12
10: aload 2
aload 1
getfield java.awt.Rectangle.y:I
putfield java.awt.Point.y:I
11: goto 14
12: StackMap locals:
StackMap stack:
aload 2
getfield java.awt.Point.y:I
aload 1
getfield java.awt.Rectangle.y:I
aload 1
getfield java.awt.Rectangle.height:I
iadd
if_icmple 14
13: aload 2
aload 1
getfield java.awt.Rectangle.y:I
aload 1
getfield java.awt.Rectangle.height:I
iadd
putfield java.awt.Point.y:I
14: StackMap locals:
StackMap stack:
aload 0
aload 2
getfield java.awt.Point.x:I
putfield sun.lwawt.macosx.CRobot.mouseLastX:I
15: aload 0
aload 2
getfield java.awt.Point.y:I
putfield sun.lwawt.macosx.CRobot.mouseLastY:I
end local 2 end local 1 16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/lwawt/macosx/CRobot;
3 16 1 deviceBounds Ljava/awt/Rectangle;
4 16 2 mousePos Ljava/awt/Point;
public native void mouseWheel(int);
descriptor: (I)V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
wheelAmt
public void keyPress(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_1
invokevirtual sun.lwawt.macosx.CRobot.keyEvent:(IZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CRobot;
0 2 1 keycode I
MethodParameters:
Name Flags
keycode final
public void keyRelease(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_0
invokevirtual sun.lwawt.macosx.CRobot.keyEvent:(IZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CRobot;
0 2 1 keycode I
MethodParameters:
Name Flags
keycode final
public int getRGBPixel(int, int);
descriptor: (II)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
newarray 10
astore 3
start local 3 1: aload 0
new java.awt.Rectangle
dup
iload 1
iload 2
iconst_1
iconst_1
invokespecial java.awt.Rectangle.<init>:(IIII)V
aload 3
invokevirtual sun.lwawt.macosx.CRobot.getScreenPixels:(Ljava/awt/Rectangle;[I)V
2: aload 3
iconst_0
iaload
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/lwawt/macosx/CRobot;
0 3 1 x I
0 3 2 y I
1 3 3 c [I
MethodParameters:
Name Flags
x
y
public int[] getRGBPixels(java.awt.Rectangle);
descriptor: (Ljava/awt/Rectangle;)[I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield java.awt.Rectangle.width:I
aload 1
getfield java.awt.Rectangle.height:I
imul
newarray 10
astore 2
start local 2 1: aload 0
aload 1
aload 2
invokevirtual sun.lwawt.macosx.CRobot.getScreenPixels:(Ljava/awt/Rectangle;[I)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/lwawt/macosx/CRobot;
0 3 1 bounds Ljava/awt/Rectangle;
1 3 2 c [I
MethodParameters:
Name Flags
bounds final
private native void initRobot();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native void mouseEvent(int, int, int, int, boolean, boolean);
descriptor: (IIIIZZ)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
displayID
lastX
lastY
buttonsState
isButtonsDownState
isMouseMove
private native void keyEvent(int, boolean);
descriptor: (IZ)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
javaKeyCode
keydown
private void getScreenPixels(java.awt.Rectangle, int[]);
descriptor: (Ljava/awt/Rectangle;[I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
getfield java.awt.Rectangle.x:I
aload 1
getfield java.awt.Rectangle.y:I
aload 1
getfield java.awt.Rectangle.width:I
aload 1
getfield java.awt.Rectangle.height:I
aload 2
invokevirtual sun.lwawt.macosx.CRobot.nativeGetScreenPixels:(IIII[I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CRobot;
0 2 1 r Ljava/awt/Rectangle;
0 2 2 pixels [I
MethodParameters:
Name Flags
r
pixels
private native void nativeGetScreenPixels(int, int, int, int, int[]);
descriptor: (IIII[I)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
x
y
width
height
pixels
}
SourceFile: "CRobot.java"