final class sun.awt.X11.XRobotPeer implements java.awt.peer.RobotPeer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.awt.X11.XRobotPeer
super_class: java.lang.Object
{
static final boolean tryGtk;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static volatile boolean useGtk;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private sun.awt.X11GraphicsConfig xgc;
descriptor: Lsun/awt/X11GraphicsConfig;
flags: (0x0002) ACC_PRIVATE
static java.lang.Object robotLock;
descriptor: Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokestatic sun.awt.X11.XRobotPeer.loadNativeLibraries:()V
1: new sun.security.action.GetPropertyAction
dup
ldc "awt.robot.gtk"
ldc "true"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;Ljava/lang/String;)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
3: invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic sun.awt.X11.XRobotPeer.tryGtk:Z
4: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic sun.awt.X11.XRobotPeer.robotLock:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.awt.GraphicsConfiguration);
descriptor: (Ljava/awt/GraphicsConfiguration;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
2: aload 0
aload 1
checkcast sun.awt.X11GraphicsConfig
putfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
3: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
checkcast sun.awt.SunToolkit
astore 2
start local 2 4: aload 2
invokevirtual sun.awt.SunToolkit.getNumberOfButtons:()I
5: invokestatic sun.awt.AWTAccessor.getInputEventAccessor:()Lsun/awt/AWTAccessor$InputEventAccessor;
invokeinterface sun.awt.AWTAccessor$InputEventAccessor.getButtonDownMasks:()[I
6: invokestatic sun.awt.X11.XRobotPeer.setup:(I[I)V
7: iconst_0
istore 3
start local 3 8: getstatic sun.awt.X11.XRobotPeer.tryGtk:Z
ifeq 11
9: aload 2
instanceof sun.awt.UNIXToolkit
ifeq 11
aload 2
checkcast sun.awt.UNIXToolkit
invokevirtual sun.awt.UNIXToolkit.loadGTK:()Z
ifeq 11
10: iconst_1
istore 3
11: StackMap locals: sun.awt.X11.XRobotPeer java.awt.GraphicsConfiguration sun.awt.SunToolkit int
StackMap stack:
getstatic sun.awt.X11.XRobotPeer.tryGtk:Z
ifeq 12
iload 3
ifeq 12
iconst_1
goto 13
StackMap locals:
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: putstatic sun.awt.X11.XRobotPeer.useGtk:Z
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/awt/X11/XRobotPeer;
0 15 1 gc Ljava/awt/GraphicsConfiguration;
4 15 2 tk Lsun/awt/SunToolkit;
8 15 3 isGtkSupported Z
MethodParameters:
Name Flags
gc
public void mouseMove(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
aload 0
getfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
iload 1
invokevirtual sun.awt.X11GraphicsConfig.scaleUp:(I)I
aload 0
getfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
iload 2
invokevirtual sun.awt.X11GraphicsConfig.scaleUp:(I)I
invokestatic sun.awt.X11.XRobotPeer.mouseMoveImpl:(Lsun/awt/X11GraphicsConfig;II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XRobotPeer;
0 2 1 x I
0 2 2 y I
MethodParameters:
Name Flags
x
y
public void mousePress(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.awt.X11.XRobotPeer.mousePressImpl:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XRobotPeer;
0 2 1 buttons I
MethodParameters:
Name Flags
buttons
public void mouseRelease(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.awt.X11.XRobotPeer.mouseReleaseImpl:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XRobotPeer;
0 2 1 buttons I
MethodParameters:
Name Flags
buttons
public void mouseWheel(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.awt.X11.XRobotPeer.mouseWheelImpl:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XRobotPeer;
0 2 1 wheelAmt I
MethodParameters:
Name Flags
wheelAmt
public void keyPress(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.awt.X11.XRobotPeer.keyPressImpl:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XRobotPeer;
0 2 1 keycode I
MethodParameters:
Name Flags
keycode
public void keyRelease(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.awt.X11.XRobotPeer.keyReleaseImpl:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XRobotPeer;
0 2 1 keycode I
MethodParameters:
Name Flags
keycode
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
getfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
iload 1
iload 2
iconst_1
iconst_1
aload 3
getstatic sun.awt.X11.XRobotPeer.useGtk:Z
invokestatic sun.awt.X11.XRobotPeer.getRGBPixelsImpl:(Lsun/awt/X11GraphicsConfig;IIII[IZ)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/awt/X11/XRobotPeer;
0 3 1 x I
0 3 2 y I
1 3 3 pixelArray [I
MethodParameters:
Name Flags
x
y
public int[] getRGBPixels(java.awt.Rectangle);
descriptor: (Ljava/awt/Rectangle;)[I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, 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
getfield sun.awt.X11.XRobotPeer.xgc:Lsun/awt/X11GraphicsConfig;
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
2: aload 2
getstatic sun.awt.X11.XRobotPeer.useGtk:Z
3: invokestatic sun.awt.X11.XRobotPeer.getRGBPixelsImpl:(Lsun/awt/X11GraphicsConfig;IIII[IZ)V
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/awt/X11/XRobotPeer;
0 5 1 bounds Ljava/awt/Rectangle;
1 5 2 pixelArray [I
MethodParameters:
Name Flags
bounds
private static synchronized native void setup(int, int[]);
descriptor: (I[I)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
numberOfButtons
buttonDownMasks
private static native void loadNativeLibraries();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static synchronized native void mouseMoveImpl(sun.awt.X11GraphicsConfig, int, int);
descriptor: (Lsun/awt/X11GraphicsConfig;II)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
xgc
x
y
private static synchronized native void mousePressImpl(int);
descriptor: (I)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
buttons
private static synchronized native void mouseReleaseImpl(int);
descriptor: (I)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
buttons
private static synchronized native void mouseWheelImpl(int);
descriptor: (I)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
wheelAmt
private static synchronized native void keyPressImpl(int);
descriptor: (I)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
keycode
private static synchronized native void keyReleaseImpl(int);
descriptor: (I)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
keycode
private static synchronized native void getRGBPixelsImpl(sun.awt.X11GraphicsConfig, int, int, int, int, int[], boolean);
descriptor: (Lsun/awt/X11GraphicsConfig;IIII[IZ)V
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
xgc
x
y
width
height
pixelArray
isGtkSupported
}
SourceFile: "XRobotPeer.java"
InnerClasses:
public abstract InputEventAccessor = sun.awt.AWTAccessor$InputEventAccessor of sun.awt.AWTAccessor