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 java.util.TaskQueue queue;
descriptor: Ljava/util/TaskQueue;
flags: (0x0002) ACC_PRIVATE
private java.util.TimerThread thread;
descriptor: Ljava/util/TimerThread;
flags: (0x0002) ACC_PRIVATE
private java.lang.Object threadReaper;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private static int nextSerialNumber;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic java.util.Timer.nextSerialNumber:I
return
LocalVariableTable:
Start End Slot Name Signature
private static synchronized int serialNumber();
descriptor: ()I
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=0, args_size=0
0: getstatic java.util.Timer.nextSerialNumber:I
dup
iconst_1
iadd
putstatic java.util.Timer.nextSerialNumber: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:
aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
dup
astore 6
monitorenter
3: aload 0
getfield java.util.Timer.thread:Ljava/util/TimerThread;
getfield java.util.TimerThread.newTasksMayBeScheduled:Z
ifne 5
4: new java.lang.IllegalStateException
dup
ldc "Timer already cancelled."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.util.TaskQueue
StackMap stack:
aload 1
getfield java.util.TimerTask.lock:Ljava/lang/Object;
dup
astore 7
monitorenter
6: aload 1
getfield java.util.TimerTask.state:I
ifeq 10
7: new java.lang.IllegalStateException
dup
8: ldc "Task already scheduled or cancelled"
9: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.lang.Object
StackMap stack:
aload 1
lload 2
putfield java.util.TimerTask.nextExecutionTime:J
11: aload 1
lload 4
putfield java.util.TimerTask.period:J
12: aload 1
iconst_1
putfield java.util.TimerTask.state:I
13: aload 7
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 7
monitorexit
16: athrow
17: 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
18: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.util.TaskQueue.getMin:()Ljava/util/TimerTask;
aload 1
if_acmpne 20
19: aload 0
getfield java.util.Timer.queue:Ljava/util/TaskQueue;
invokevirtual java.lang.Object.notify:()V
20: StackMap locals:
StackMap stack:
aload 6
monitorexit
21: goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
22: aload 6
monitorexit
23: athrow
24: StackMap locals:
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljava/util/Timer;
0 25 1 task Ljava/util/TimerTask;
0 25 2 time J
0 25 4 period J
Exception table:
from to target type
6 14 15 any
15 16 15 any
3 21 22 any
22 23 22 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