public abstract class com.sun.glass.ui.Timer
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.glass.ui.Timer
super_class: java.lang.Object
{
private static final double UNSET_PERIOD;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1.0
private static final double SET_PERIOD;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2.0
private final java.lang.Runnable runnable;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long ptr;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private double period;
descriptor: D
flags: (0x0002) ACC_PRIVATE
protected abstract long _start(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)J
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
runnable
protected abstract long _start(java.lang.Runnable, int);
descriptor: (Ljava/lang/Runnable;I)J
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
runnable
period
protected abstract void _stop(long);
descriptor: (J)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
timer
protected void <init>(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0004) ACC_PROTECTED
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
ldc -1.0
putfield com.sun.glass.ui.Timer.period:D
2: aload 1
ifnonnull 4
3: new java.lang.IllegalArgumentException
dup
ldc "runnable shouldn't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: com.sun.glass.ui.Timer java.lang.Runnable
StackMap stack:
aload 0
aload 1
putfield com.sun.glass.ui.Timer.runnable:Ljava/lang/Runnable;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/glass/ui/Timer;
0 6 1 runnable Ljava/lang/Runnable;
MethodParameters:
Name Flags
runnable
public static int getMinPeriod();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.sun.glass.ui.Application.GetApplication:()Lcom/sun/glass/ui/Application;
invokevirtual com.sun.glass.ui.Application.staticTimer_getMinPeriod:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int getMaxPeriod();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.sun.glass.ui.Application.GetApplication:()Lcom/sun/glass/ui/Application;
invokevirtual com.sun.glass.ui.Application.staticTimer_getMaxPeriod:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public synchronized void start(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic com.sun.glass.ui.Timer.getMinPeriod:()I
if_icmplt 1
iload 1
invokestatic com.sun.glass.ui.Timer.getMaxPeriod:()I
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "period is out of range"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.Timer.ptr:J
lconst_0
lcmp
ifeq 4
3: aload 0
invokevirtual com.sun.glass.ui.Timer.stop:()V
4: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 0
getfield com.sun.glass.ui.Timer.runnable:Ljava/lang/Runnable;
iload 1
invokevirtual com.sun.glass.ui.Timer._start:(Ljava/lang/Runnable;I)J
putfield com.sun.glass.ui.Timer.ptr:J
5: aload 0
getfield com.sun.glass.ui.Timer.ptr:J
lconst_0
lcmp
ifne 8
6: aload 0
ldc -1.0
putfield com.sun.glass.ui.Timer.period:D
7: new java.lang.RuntimeException
dup
ldc "Failed to start the timer"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
iload 1
i2d
putfield com.sun.glass.ui.Timer.period:D
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/glass/ui/Timer;
0 10 1 period I
MethodParameters:
Name Flags
period
public synchronized void start();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.Timer.ptr:J
lconst_0
lcmp
ifeq 2
1: aload 0
invokevirtual com.sun.glass.ui.Timer.stop:()V
2: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 0
getfield com.sun.glass.ui.Timer.runnable:Ljava/lang/Runnable;
invokevirtual com.sun.glass.ui.Timer._start:(Ljava/lang/Runnable;)J
putfield com.sun.glass.ui.Timer.ptr:J
3: aload 0
getfield com.sun.glass.ui.Timer.ptr:J
lconst_0
lcmp
ifne 6
4: aload 0
ldc -1.0
putfield com.sun.glass.ui.Timer.period:D
5: new java.lang.RuntimeException
dup
ldc "Failed to start the timer"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
ldc -2.0
putfield com.sun.glass.ui.Timer.period:D
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/glass/ui/Timer;
public synchronized void stop();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.Timer.ptr:J
lconst_0
lcmp
ifeq 4
1: aload 0
aload 0
getfield com.sun.glass.ui.Timer.ptr:J
invokevirtual com.sun.glass.ui.Timer._stop:(J)V
2: aload 0
lconst_0
putfield com.sun.glass.ui.Timer.ptr:J
3: aload 0
ldc -1.0
putfield com.sun.glass.ui.Timer.period:D
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/glass/ui/Timer;
public synchronized boolean isRunning();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.Timer.period:D
ldc -1.0
dcmpl
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/Timer;
}
SourceFile: "Timer.java"