public class java.awt.Robot
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.awt.Robot
super_class: java.lang.Object
{
private static final int MAX_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 60000
private java.awt.peer.RobotPeer peer;
descriptor: Ljava/awt/peer/RobotPeer;
flags: (0x0002) ACC_PRIVATE
private boolean isAutoWaitForIdle;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int autoDelay;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static int LEGAL_BUTTON_MASK;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.awt.Point gdLoc;
descriptor: Ljava/awt/Point;
flags: (0x0002) ACC_PRIVATE
private java.awt.image.DirectColorModel screenCapCM;
descriptor: Ljava/awt/image/DirectColorModel;
flags: (0x0002) ACC_PRIVATE
private transient java.lang.Object anchor;
descriptor: Ljava/lang/Object;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.awt.Robot$RobotDisposer disposer;
descriptor: Ljava/awt/Robot$RobotDisposer;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic java.awt.Robot.LEGAL_BUTTON_MASK:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.awt.Robot.isAutoWaitForIdle:Z
2: aload 0
iconst_0
putfield java.awt.Robot.autoDelay:I
3: aload 0
aconst_null
putfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.awt.Robot.anchor:Ljava/lang/Object;
5: invokestatic java.awt.GraphicsEnvironment.isHeadless:()Z
ifeq 7
6: new java.awt.AWTException
dup
ldc "headless environment"
invokespecial java.awt.AWTException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.awt.Robot
StackMap stack:
aload 0
invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
8: invokevirtual java.awt.GraphicsEnvironment.getDefaultScreenDevice:()Ljava/awt/GraphicsDevice;
9: invokevirtual java.awt.Robot.init:(Ljava/awt/GraphicsDevice;)V
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/awt/Robot;
Exceptions:
throws java.awt.AWTException
public void <init>(java.awt.GraphicsDevice);
descriptor: (Ljava/awt/GraphicsDevice;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.awt.Robot.isAutoWaitForIdle:Z
2: aload 0
iconst_0
putfield java.awt.Robot.autoDelay:I
3: aload 0
aconst_null
putfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.awt.Robot.anchor:Ljava/lang/Object;
5: aload 0
aload 1
invokevirtual java.awt.Robot.checkIsScreenDevice:(Ljava/awt/GraphicsDevice;)V
6: aload 0
aload 1
invokevirtual java.awt.Robot.init:(Ljava/awt/GraphicsDevice;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/awt/Robot;
0 8 1 screen Ljava/awt/GraphicsDevice;
Exceptions:
throws java.awt.AWTException
MethodParameters:
Name Flags
screen
private void init(java.awt.GraphicsDevice);
descriptor: (Ljava/awt/GraphicsDevice;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.awt.Robot.checkRobotAllowed:()V
1: aload 0
aload 1
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
invokevirtual java.awt.Rectangle.getLocation:()Ljava/awt/Point;
putfield java.awt.Robot.gdLoc:Ljava/awt/Point;
2: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
astore 2
start local 2 3: aload 2
instanceof sun.awt.ComponentFactory
ifeq 7
4: aload 0
aload 2
checkcast sun.awt.ComponentFactory
aload 0
aload 1
invokeinterface sun.awt.ComponentFactory.createRobot:(Ljava/awt/Robot;Ljava/awt/GraphicsDevice;)Ljava/awt/peer/RobotPeer;
putfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
5: aload 0
new java.awt.Robot$RobotDisposer
dup
aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
invokespecial java.awt.Robot$RobotDisposer.<init>:(Ljava/awt/peer/RobotPeer;)V
putfield java.awt.Robot.disposer:Ljava/awt/Robot$RobotDisposer;
6: aload 0
getfield java.awt.Robot.anchor:Ljava/lang/Object;
aload 0
getfield java.awt.Robot.disposer:Ljava/awt/Robot$RobotDisposer;
invokestatic sun.java2d.Disposer.addRecord:(Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
7: StackMap locals: java.awt.Toolkit
StackMap stack:
invokestatic java.awt.Robot.initLegalButtonMask:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/awt/Robot;
0 9 1 screen Ljava/awt/GraphicsDevice;
3 9 2 toolkit Ljava/awt/Toolkit;
Exceptions:
throws java.awt.AWTException
MethodParameters:
Name Flags
screen
private static synchronized void initLegalButtonMask();
descriptor: ()V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=0
0: getstatic java.awt.Robot.LEGAL_BUTTON_MASK:I
ifeq 1
return
1: StackMap locals:
StackMap stack:
iconst_0
istore 0
start local 0 2: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
invokevirtual java.awt.Toolkit.areExtraMouseButtonsEnabled:()Z
ifeq 10
3: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
instanceof sun.awt.SunToolkit
ifeq 10
4: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
checkcast sun.awt.SunToolkit
invokevirtual sun.awt.SunToolkit.getNumberOfButtons:()I
istore 1
start local 1 5: iconst_0
istore 2
start local 2 6: goto 9
7: StackMap locals: int int int
StackMap stack:
iload 0
iload 2
iconst_1
iadd
invokestatic java.awt.event.InputEvent.getMaskForButton:(I)I
ior
istore 0
8: iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
iload 1
if_icmplt 7
end local 2 end local 1 10: StackMap locals:
StackMap stack:
iload 0
sipush 7196
ior
istore 0
11: iload 0
putstatic java.awt.Robot.LEGAL_BUTTON_MASK:I
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 13 0 tmpMask I
5 10 1 buttonsNumber I
6 10 2 i I
private void checkRobotAllowed();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
getstatic sun.security.util.SecurityConstants$AWT.CREATE_ROBOT_PERMISSION:Ljava/security/Permission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/Robot;
1 4 1 security Ljava/lang/SecurityManager;
private void checkIsScreenDevice(java.awt.GraphicsDevice);
descriptor: (Ljava/awt/GraphicsDevice;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.awt.GraphicsDevice.getType:()I
ifeq 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "not a valid screen device"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 device Ljava/awt/GraphicsDevice;
MethodParameters:
Name Flags
device
public synchronized void mouseMove(int, int);
descriptor: (II)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
aload 0
getfield java.awt.Robot.gdLoc:Ljava/awt/Point;
getfield java.awt.Point.x:I
iload 1
iadd
aload 0
getfield java.awt.Robot.gdLoc:Ljava/awt/Point;
getfield java.awt.Point.y:I
iload 2
iadd
invokeinterface java.awt.peer.RobotPeer.mouseMove:(II)V
1: aload 0
invokevirtual java.awt.Robot.afterEvent:()V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 x I
0 3 2 y I
MethodParameters:
Name Flags
x
y
public synchronized void mousePress(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.awt.Robot.checkButtonsArgument:(I)V
1: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
iload 1
invokeinterface java.awt.peer.RobotPeer.mousePress:(I)V
2: aload 0
invokevirtual java.awt.Robot.afterEvent:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/Robot;
0 4 1 buttons I
MethodParameters:
Name Flags
buttons
public synchronized void mouseRelease(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.awt.Robot.checkButtonsArgument:(I)V
1: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
iload 1
invokeinterface java.awt.peer.RobotPeer.mouseRelease:(I)V
2: aload 0
invokevirtual java.awt.Robot.afterEvent:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/Robot;
0 4 1 buttons I
MethodParameters:
Name Flags
buttons
private void checkButtonsArgument(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
getstatic java.awt.Robot.LEGAL_BUTTON_MASK:I
ior
getstatic java.awt.Robot.LEGAL_BUTTON_MASK:I
if_icmpeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid combination of button flags"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 buttons I
MethodParameters:
Name Flags
buttons
public synchronized void mouseWheel(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
iload 1
invokeinterface java.awt.peer.RobotPeer.mouseWheel:(I)V
1: aload 0
invokevirtual java.awt.Robot.afterEvent:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 wheelAmt I
MethodParameters:
Name Flags
wheelAmt
public synchronized void keyPress(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.awt.Robot.checkKeycodeArgument:(I)V
1: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
iload 1
invokeinterface java.awt.peer.RobotPeer.keyPress:(I)V
2: aload 0
invokevirtual java.awt.Robot.afterEvent:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/Robot;
0 4 1 keycode I
MethodParameters:
Name Flags
keycode
public synchronized void keyRelease(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.awt.Robot.checkKeycodeArgument:(I)V
1: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
iload 1
invokeinterface java.awt.peer.RobotPeer.keyRelease:(I)V
2: aload 0
invokevirtual java.awt.Robot.afterEvent:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/Robot;
0 4 1 keycode I
MethodParameters:
Name Flags
keycode
private void checkKeycodeArgument(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid key code"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 keycode I
MethodParameters:
Name Flags
keycode
public synchronized java.awt.Color getPixelColor(int, int);
descriptor: (II)Ljava/awt/Color;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.awt.Robot.checkScreenCaptureAllowed:()V
1: new java.awt.Color
dup
aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
aload 0
getfield java.awt.Robot.gdLoc:Ljava/awt/Point;
getfield java.awt.Point.x:I
iload 1
iadd
aload 0
getfield java.awt.Robot.gdLoc:Ljava/awt/Point;
getfield java.awt.Point.y:I
iload 2
iadd
invokeinterface java.awt.peer.RobotPeer.getRGBPixel:(II)I
invokespecial java.awt.Color.<init>:(I)V
astore 3
start local 3 2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 x I
0 3 2 y I
2 3 3 color Ljava/awt/Color;
MethodParameters:
Name Flags
x
y
public synchronized java.awt.image.BufferedImage createScreenCapture(java.awt.Rectangle);
descriptor: (Ljava/awt/Rectangle;)Ljava/awt/image/BufferedImage;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: invokestatic java.awt.Robot.checkScreenCaptureAllowed:()V
1: new java.awt.Rectangle
dup
aload 1
invokespecial java.awt.Rectangle.<init>:(Ljava/awt/Rectangle;)V
astore 2
start local 2 2: aload 2
aload 0
getfield java.awt.Robot.gdLoc:Ljava/awt/Point;
getfield java.awt.Point.x:I
aload 0
getfield java.awt.Robot.gdLoc:Ljava/awt/Point;
getfield java.awt.Point.y:I
invokevirtual java.awt.Rectangle.translate:(II)V
3: aload 2
invokestatic java.awt.Robot.checkValidRect:(Ljava/awt/Rectangle;)V
4: aload 0
getfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
ifnonnull 10
5: aload 0
new java.awt.image.DirectColorModel
dup
bipush 24
6: ldc 16711680
7: ldc 65280
8: sipush 255
invokespecial java.awt.image.DirectColorModel.<init>:(IIII)V
9: putfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
10: StackMap locals: java.awt.Rectangle
StackMap stack:
invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
invokevirtual java.awt.Toolkit.sync:()V
11: iconst_3
newarray 10
astore 7
start local 7 12: aload 0
getfield java.awt.Robot.peer:Ljava/awt/peer/RobotPeer;
aload 2
invokeinterface java.awt.peer.RobotPeer.getRGBPixels:(Ljava/awt/Rectangle;)[I
astore 6
start local 6 13: new java.awt.image.DataBufferInt
dup
aload 6
aload 6
arraylength
invokespecial java.awt.image.DataBufferInt.<init>:([II)V
astore 4
start local 4 14: aload 7
iconst_0
aload 0
getfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
invokevirtual java.awt.image.DirectColorModel.getRedMask:()I
iastore
15: aload 7
iconst_1
aload 0
getfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
invokevirtual java.awt.image.DirectColorModel.getGreenMask:()I
iastore
16: aload 7
iconst_2
aload 0
getfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
invokevirtual java.awt.image.DirectColorModel.getBlueMask:()I
iastore
17: aload 4
aload 2
getfield java.awt.Rectangle.width:I
aload 2
getfield java.awt.Rectangle.height:I
aload 2
getfield java.awt.Rectangle.width:I
aload 7
aconst_null
invokestatic java.awt.image.Raster.createPackedRaster:(Ljava/awt/image/DataBuffer;III[ILjava/awt/Point;)Ljava/awt/image/WritableRaster;
astore 5
start local 5 18: aload 4
invokestatic sun.awt.image.SunWritableRaster.makeTrackable:(Ljava/awt/image/DataBuffer;)V
19: new java.awt.image.BufferedImage
dup
aload 0
getfield java.awt.Robot.screenCapCM:Ljava/awt/image/DirectColorModel;
aload 5
iconst_0
aconst_null
invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 3
start local 3 20: aload 3
areturn
end local 7 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 21 0 this Ljava/awt/Robot;
0 21 1 screenRect Ljava/awt/Rectangle;
2 21 2 translatedRect Ljava/awt/Rectangle;
20 21 3 image Ljava/awt/image/BufferedImage;
14 21 4 buffer Ljava/awt/image/DataBufferInt;
18 21 5 raster Ljava/awt/image/WritableRaster;
13 21 6 pixels [I
12 21 7 bandmasks [I
MethodParameters:
Name Flags
screenRect
private static void checkValidRect(java.awt.Rectangle);
descriptor: (Ljava/awt/Rectangle;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.Rectangle.width:I
ifle 1
aload 0
getfield java.awt.Rectangle.height:I
ifgt 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Rectangle width and height must be > 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 rect Ljava/awt/Rectangle;
MethodParameters:
Name Flags
rect
private static void checkScreenCaptureAllowed();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 5
2: aload 0
3: getstatic sun.security.util.SecurityConstants$AWT.READ_DISPLAY_PIXELS_PERMISSION:Ljava/security/Permission;
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 security Ljava/lang/SecurityManager;
private void afterEvent();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Robot.autoWaitForIdle:()V
1: aload 0
invokevirtual java.awt.Robot.autoDelay:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
public synchronized boolean isAutoWaitForIdle();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.Robot.isAutoWaitForIdle:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/Robot;
public synchronized void setAutoWaitForIdle(boolean);
descriptor: (Z)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield java.awt.Robot.isAutoWaitForIdle:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Robot;
0 2 1 isOn Z
MethodParameters:
Name Flags
isOn
private void autoWaitForIdle();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.Robot.isAutoWaitForIdle:Z
ifeq 2
1: aload 0
invokevirtual java.awt.Robot.waitForIdle:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
public synchronized int getAutoDelay();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.Robot.autoDelay:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/Robot;
public synchronized void setAutoDelay(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.awt.Robot.checkDelayArgument:(I)V
1: aload 0
iload 1
putfield java.awt.Robot.autoDelay:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 ms I
MethodParameters:
Name Flags
ms
private void autoDelay();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield java.awt.Robot.autoDelay:I
invokevirtual java.awt.Robot.delay:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Robot;
public synchronized void delay(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.awt.Robot.checkDelayArgument:(I)V
1: iload 1
i2l
invokestatic java.lang.Thread.sleep:(J)V
2: goto 5
StackMap locals:
StackMap stack: java.lang.InterruptedException
3: astore 2
start local 2 4: aload 2
invokevirtual java.lang.InterruptedException.printStackTrace:()V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/awt/Robot;
0 6 1 ms I
4 5 2 ite Ljava/lang/InterruptedException;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
MethodParameters:
Name Flags
ms
private void checkDelayArgument(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iload 1
ldc 60000
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Delay must be to 0 to 60,000ms"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
0 3 1 ms I
MethodParameters:
Name Flags
ms
public synchronized void waitForIdle();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.awt.Robot.checkNotDispatchThread:()V
1: invokestatic sun.awt.SunToolkit.flushPendingEvents:()V
2: new java.awt.Robot$1
dup
aload 0
invokespecial java.awt.Robot$1.<init>:(Ljava/awt/Robot;)V
invokestatic java.awt.EventQueue.invokeAndWait:(Ljava/lang/Runnable;)V
3: goto 11
StackMap locals:
StackMap stack: java.lang.InterruptedException
4: astore 1
start local 1 5: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Robot.waitForIdle, non-fatal exception caught:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: aload 1
invokevirtual java.lang.InterruptedException.printStackTrace:()V
end local 1 7: goto 11
8: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 1
start local 1 9: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Robot.waitForIdle, non-fatal exception caught:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: aload 1
invokevirtual java.lang.reflect.InvocationTargetException.printStackTrace:()V
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/awt/Robot;
5 7 1 ite Ljava/lang/InterruptedException;
9 11 1 ine Ljava/lang/reflect/InvocationTargetException;
Exception table:
from to target type
1 3 4 Class java.lang.InterruptedException
1 3 8 Class java.lang.reflect.InvocationTargetException
private void checkNotDispatchThread();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: invokestatic java.awt.EventQueue.isDispatchThread:()Z
ifeq 2
1: new java.lang.IllegalThreadStateException
dup
ldc "Cannot call method from the event dispatcher thread"
invokespecial java.lang.IllegalThreadStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/Robot;
public synchronized java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "autoDelay = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.awt.Robot.getAutoDelay:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "autoWaitForIdle = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.awt.Robot.isAutoWaitForIdle:()Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 1: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[ "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/Robot;
1 2 1 params Ljava/lang/String;
}
SourceFile: "Robot.java"
NestMembers:
java.awt.Robot$1 java.awt.Robot$RobotDisposer
InnerClasses:
java.awt.Robot$1
RobotDisposer = java.awt.Robot$RobotDisposer of java.awt.Robot
public AWT = sun.security.util.SecurityConstants$AWT of sun.security.util.SecurityConstants