public class java.util.Timer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.Timer
super_class: java.lang.Object
{
private final java.util.TaskQueue queue;
descriptor: Ljava/util/TaskQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.TimerThread thread;
descriptor: Ljava/util/TimerThread;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object threadReaper;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicInteger nextSerialNumber;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putstatic java.util.Timer.nextSerialNumber:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
private static int serialNumber();
descriptor: ()I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.util.Timer.nextSerialNumber:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.lang.StringBuilder
dup
ldc "Timer-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.util.Timer.serialNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.util.Timer.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Timer;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "Timer-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.util.Timer.serialNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iload 1
invokespecial java.util.Timer.<init>:(Ljava/lang/String;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Timer;
0 2 1 isDaemon Z
MethodParameters:
Name Flags
isDaemon
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.TaskQueue
dup
invokespecial java.util.TaskQueue.<init>:()V
putfield java.util.Timer.queue:Ljava/util/TaskQueue;
2: aload 0
new java.util.TimerThread
dup
aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokespecial java.util.TimerThread.<init>:(Ljava/util/TaskQueue;)V
putfield java.util.Timer.thread:Ljava/util/TimerThread;
3: aload 0
new java.util.Timer$1
dup
aload 0
invokespecial java.util.Timer$1.<init>:(Ljava/util/Timer;)V
putfield java.util.Timer.threadReaper:Ljava/lang/Object;
4: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
aload 1
invokevirtual java.util.TimerThread.setName:(Ljava/lang/String;)V
5: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
invokevirtual java.util.TimerThread.start:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Timer;
0 7 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void <init>(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)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
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.TaskQueue
dup
invokespecial java.util.TaskQueue.<init>:()V
putfield java.util.Timer.queue:Ljava/util/TaskQueue;
2: aload 0
new java.util.TimerThread
dup
aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokespecial java.util.TimerThread.<init>:(Ljava/util/TaskQueue;)V
putfield java.util.Timer.thread:Ljava/util/TimerThread;
3: aload 0
new java.util.Timer$1
dup
aload 0
invokespecial java.util.Timer$1.<init>:(Ljava/util/Timer;)V
putfield java.util.Timer.threadReaper:Ljava/lang/Object;
4: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
aload 1
invokevirtual java.util.TimerThread.setName:(Ljava/lang/String;)V
5: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
iload 2
invokevirtual java.util.TimerThread.setDaemon:(Z)V
6: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
invokevirtual java.util.TimerThread.start:()V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/Timer;
0 8 1 name Ljava/lang/String;
0 8 2 isDaemon Z
MethodParameters:
Name Flags
name
isDaemon
public void schedule(java.util.TimerTask, long);
descriptor: (Ljava/util/TimerTask;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: lload 2
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Negative delay."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
ladd
lconst_0
invokevirtual java.util.Timer.sched:(Ljava/util/TimerTask;JJ)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Timer;
0 4 1 task Ljava/util/TimerTask;
0 4 2 delay J
MethodParameters:
Name Flags
task
delay
public void schedule(java.util.TimerTask, java.util.Date);
descriptor: (Ljava/util/TimerTask;Ljava/util/Date;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual java.util.Date.getTime:()J
lconst_0
invokevirtual java.util.Timer.sched:(Ljava/util/TimerTask;JJ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Timer;
0 2 1 task Ljava/util/TimerTask;
0 2 2 time Ljava/util/Date;
MethodParameters:
Name Flags
task
time
public void schedule(java.util.TimerTask, long, long);
descriptor: (Ljava/util/TimerTask;JJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: lload 2
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Negative delay."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifgt 4
3: new java.lang.IllegalArgumentException
dup
ldc "Non-positive period."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
ladd
lload 4
lneg
invokevirtual java.util.Timer.sched:(Ljava/util/TimerTask;JJ)V
5: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Timer;
0 6 1 task Ljava/util/TimerTask;
0 6 2 delay J
0 6 4 period J
MethodParameters:
Name Flags
task
delay
period
public void schedule(java.util.TimerTask, java.util.Date, long);
descriptor: (Ljava/util/TimerTask;Ljava/util/Date;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: lload 3
lconst_0
lcmp
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "Non-positive period."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual java.util.Date.getTime:()J
lload 3
lneg
invokevirtual java.util.Timer.sched:(Ljava/util/TimerTask;JJ)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Timer;
0 4 1 task Ljava/util/TimerTask;
0 4 2 firstTime Ljava/util/Date;
0 4 3 period J
MethodParameters:
Name Flags
task
firstTime
period
public void scheduleAtFixedRate(java.util.TimerTask, long, long);
descriptor: (Ljava/util/TimerTask;JJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: lload 2
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Negative delay."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifgt 4
3: new java.lang.IllegalArgumentException
dup
ldc "Non-positive period."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
ladd
lload 4
invokevirtual java.util.Timer.sched:(Ljava/util/TimerTask;JJ)V
5: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Timer;
0 6 1 task Ljava/util/TimerTask;
0 6 2 delay J
0 6 4 period J
MethodParameters:
Name Flags
task
delay
period
public void scheduleAtFixedRate(java.util.TimerTask, java.util.Date, long);
descriptor: (Ljava/util/TimerTask;Ljava/util/Date;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: lload 3
lconst_0
lcmp
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "Non-positive period."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual java.util.Date.getTime:()J
lload 3
invokevirtual java.util.Timer.sched:(Ljava/util/TimerTask;JJ)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Timer;
0 4 1 task Ljava/util/TimerTask;
0 4 2 firstTime Ljava/util/Date;
0 4 3 period J
MethodParameters:
Name Flags
task
firstTime
period
private void sched(java.util.TimerTask, long, long);
descriptor: (Ljava/util/TimerTask;JJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 4 0: lload 2
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Illegal execution time."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 4
invokestatic java.lang.Math.abs:(J)J
ldc 4611686018427387903
lcmp
ifle 4
3: lload 4
iconst_1
lshr
lstore 4
4: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
dup
astore 6
monitorenter
5: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
getfield java.util.TimerThread.newTasksMayBeScheduled:Z
ifne 7
6: new java.lang.IllegalStateException
dup
ldc "Timer already cancelled."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.util.TaskQueue
StackMap stack:
aload 1
getfield java.util.TimerTask.lock:Ljava/lang/Object;
dup
astore 7
monitorenter
8: aload 1
getfield java.util.TimerTask.state:I
ifeq 12
9: new java.lang.IllegalStateException
dup
10: ldc "Task already scheduled or cancelled"
11: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.lang.Object
StackMap stack:
aload 1
lload 2
putfield java.util.TimerTask.nextExecutionTime:J
13: aload 1
lload 4
putfield java.util.TimerTask.period:J
14: aload 1
iconst_1
putfield java.util.TimerTask.state:I
15: aload 7
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 7
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
aload 1
invokevirtual java.util.TaskQueue.add:(Ljava/util/TimerTask;)V
20: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.util.TaskQueue.getMin:()Ljava/util/TimerTask;
aload 1
if_acmpne 22
21: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.lang.Object.notify:()V
22: StackMap locals:
StackMap stack:
aload 6
monitorexit
23: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
24: aload 6
monitorexit
25: athrow
26: StackMap locals:
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljava/util/Timer;
0 27 1 task Ljava/util/TimerTask;
0 27 2 time J
0 27 4 period J
Exception table:
from to target type
8 16 17 any
17 18 17 any
5 23 24 any
24 25 24 any
MethodParameters:
Name Flags
task
time
period
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
dup
astore 1
monitorenter
1: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
iconst_0
putfield java.util.TimerThread.newTasksMayBeScheduled:Z
2: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.util.TaskQueue.clear:()V
3: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.lang.Object.notify:()V
4: aload 1
monitorexit
5: goto 8
StackMap locals: java.util.Timer java.util.TaskQueue
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/Timer;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public int purge();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
dup
astore 2
monitorenter
2: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.util.TaskQueue.size:()I
istore 3
start local 3 3: goto 8
4: StackMap locals: int java.util.TaskQueue int
StackMap stack:
aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
iload 3
invokevirtual java.util.TaskQueue.get:(I)Ljava/util/TimerTask;
getfield java.util.TimerTask.state:I
iconst_3
if_icmpne 7
5: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
iload 3
invokevirtual java.util.TaskQueue.quickRemove:(I)V
6: iinc 1 1
7: StackMap locals:
StackMap stack:
iinc 3 -1
StackMap locals:
StackMap stack:
8: iload 3
ifgt 4
end local 3 9: iload 1
ifeq 11
10: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.util.TaskQueue.heapify:()V
11: StackMap locals:
StackMap stack:
aload 2
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 2
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/Timer;
1 16 1 result I
3 9 3 i I
Exception table:
from to target type
2 12 13 any
13 14 13 any
}
SourceFile: "Timer.java"
NestMembers:
java.util.Timer$1
InnerClasses:
java.util.Timer$1