final class sun.lwawt.macosx.CCursorManager extends sun.lwawt.LWCursorManager
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.lwawt.macosx.CCursorManager
super_class: sun.lwawt.LWCursorManager
{
private static final int NAMED_CURSOR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final sun.lwawt.macosx.CCursorManager theInstance;
descriptor: Lsun/lwawt/macosx/CCursorManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private volatile java.awt.Cursor currentCursor;
descriptor: Ljava/awt/Cursor;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.lwawt.macosx.CCursorManager
dup
invokespecial sun.lwawt.macosx.CCursorManager.<init>:()V
putstatic sun.lwawt.macosx.CCursorManager.theInstance:Lsun/lwawt/macosx/CCursorManager;
return
LocalVariableTable:
Start End Slot Name Signature
private static native java.awt.geom.Point2D nativeGetCursorPosition();
descriptor: ()Ljava/awt/geom/Point2D;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native void nativeSetBuiltInCursor(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
type final
name final
private static native void nativeSetCustomCursor(long, double, double);
descriptor: (JDD)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
imgPtr final
x final
y final
public static native void nativeSetAllowsCursorSetInBackground(boolean);
descriptor: (Z)V
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
allows final
public static sun.lwawt.macosx.CCursorManager getInstance();
descriptor: ()Lsun/lwawt/macosx/CCursorManager;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.lwawt.macosx.CCursorManager.theInstance:Lsun/lwawt/macosx/CCursorManager;
areturn
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.lwawt.LWCursorManager.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CCursorManager;
protected java.awt.Point getCursorPosition();
descriptor: ()Ljava/awt/Point;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: invokestatic sun.lwawt.macosx.CCursorManager.nativeGetCursorPosition:()Ljava/awt/geom/Point2D;
astore 1
start local 1 1: new java.awt.Point
dup
aload 1
invokevirtual java.awt.geom.Point2D.getX:()D
d2i
aload 1
invokevirtual java.awt.geom.Point2D.getY:()D
d2i
invokespecial java.awt.Point.<init>:(II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/lwawt/macosx/CCursorManager;
1 2 1 nativePosition Ljava/awt/geom/Point2D;
protected void setCursor(java.awt.Cursor);
descriptor: (Ljava/awt/Cursor;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.lwawt.macosx.CCursorManager.currentCursor:Ljava/awt/Cursor;
if_acmpne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.lwawt.macosx.CCursorManager.currentCursor:Ljava/awt/Cursor;
3: aload 1
ifnonnull 6
4: iconst_0
aconst_null
invokestatic sun.lwawt.macosx.CCursorManager.nativeSetBuiltInCursor:(ILjava/lang/String;)V
5: return
6: StackMap locals:
StackMap stack:
aload 1
instanceof sun.lwawt.macosx.CCustomCursor
ifeq 13
7: aload 1
checkcast sun.lwawt.macosx.CCustomCursor
astore 2
start local 2 8: aload 2
invokevirtual sun.lwawt.macosx.CCustomCursor.getImageData:()J
lstore 3
start local 3 9: lload 3
lconst_0
lcmp
ifeq 12
10: aload 2
invokevirtual sun.lwawt.macosx.CCustomCursor.getHotSpot:()Ljava/awt/Point;
astore 5
start local 5 11: lload 3
aload 5
getfield java.awt.Point.x:I
i2d
aload 5
getfield java.awt.Point.y:I
i2d
invokestatic sun.lwawt.macosx.CCursorManager.nativeSetCustomCursor:(JDD)V
end local 5 12: StackMap locals: sun.lwawt.macosx.CCustomCursor long
StackMap stack:
return
end local 3 end local 2 13: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Cursor.getType:()I
istore 2
start local 2 14: iload 2
iconst_m1
if_icmpeq 17
15: iload 2
aconst_null
invokestatic sun.lwawt.macosx.CCursorManager.nativeSetBuiltInCursor:(ILjava/lang/String;)V
16: return
17: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.awt.Cursor.getName:()Ljava/lang/String;
astore 3
start local 3 18: aload 3
ifnull 21
19: iconst_m1
aload 3
invokestatic sun.lwawt.macosx.CCursorManager.nativeSetBuiltInCursor:(ILjava/lang/String;)V
20: return
21: StackMap locals: java.lang.String
StackMap stack:
new java.lang.RuntimeException
dup
ldc "Unimplemented"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/lwawt/macosx/CCursorManager;
0 22 1 cursor Ljava/awt/Cursor;
8 13 2 customCursor Lsun/lwawt/macosx/CCustomCursor;
9 13 3 imagePtr J
11 12 5 hotSpot Ljava/awt/Point;
14 22 2 type I
18 22 3 name Ljava/lang/String;
MethodParameters:
Name Flags
cursor final
}
SourceFile: "CCursorManager.java"