class javax.swing.TimerQueue implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.TimerQueue
super_class: java.lang.Object
{
private static final java.lang.Object sharedInstanceKey;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.DelayQueue<javax.swing.TimerQueue$DelayedTimer> queue;
descriptor: Ljava/util/concurrent/DelayQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/DelayQueue<Ljavax/swing/TimerQueue$DelayedTimer;>;
private volatile boolean running;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.concurrent.locks.Lock runningLock;
descriptor: Ljava/util/concurrent/locks/Lock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.lang.Object classLock;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long NANO_ORIGIN;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljavax/swing/TimerQueue;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic javax.swing.TimerQueue.$assertionsDisabled:Z
3: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic javax.swing.TimerQueue.sharedInstanceKey:Ljava/lang/Object;
4: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic javax.swing.TimerQueue.classLock:Ljava/lang/Object;
5: invokestatic java.lang.System.nanoTime:()J
putstatic javax.swing.TimerQueue.NANO_ORIGIN:J
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
new java.util.concurrent.DelayQueue
dup
invokespecial java.util.concurrent.DelayQueue.<init>:()V
putfield javax.swing.TimerQueue.queue:Ljava/util/concurrent/DelayQueue;
2: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
3: aload 0
invokevirtual javax.swing.TimerQueue.startIfNeeded:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/TimerQueue;
public static javax.swing.TimerQueue sharedInstance();
descriptor: ()Ljavax/swing/TimerQueue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: getstatic javax.swing.TimerQueue.classLock:Ljava/lang/Object;
dup
astore 0
monitorenter
1: getstatic javax.swing.TimerQueue.sharedInstanceKey:Ljava/lang/Object;
2: invokestatic javax.swing.SwingUtilities.appContextGet:(Ljava/lang/Object;)Ljava/lang/Object;
3: checkcast javax.swing.TimerQueue
astore 1
start local 1 4: aload 1
ifnonnull 7
5: new javax.swing.TimerQueue
dup
invokespecial javax.swing.TimerQueue.<init>:()V
astore 1
6: getstatic javax.swing.TimerQueue.sharedInstanceKey:Ljava/lang/Object;
aload 1
invokestatic javax.swing.SwingUtilities.appContextPut:(Ljava/lang/Object;Ljava/lang/Object;)V
7: StackMap locals: java.lang.Object javax.swing.TimerQueue
StackMap stack:
aload 1
aload 0
monitorexit
8: areturn
end local 1 9: StackMap locals: java.lang.Object
StackMap stack: java.lang.Throwable
aload 0
monitorexit
10: athrow
LocalVariableTable:
Start End Slot Name Signature
4 9 1 sharedInst Ljavax/swing/TimerQueue;
Exception table:
from to target type
1 8 9 any
9 10 9 any
void startIfNeeded();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield javax.swing.TimerQueue.running:Z
ifne 14
1: aload 0
getfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield javax.swing.TimerQueue.running:Z
ifeq 4
3: return
4: StackMap locals:
StackMap stack:
invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
invokevirtual sun.awt.AppContext.getThreadGroup:()Ljava/lang/ThreadGroup;
5: astore 1
start local 1 6: new javax.swing.TimerQueue$1
dup
aload 0
aload 1
invokespecial javax.swing.TimerQueue$1.<init>:(Ljavax/swing/TimerQueue;Ljava/lang/ThreadGroup;)V
7: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
8: aload 0
iconst_1
putfield javax.swing.TimerQueue.running:Z
end local 1 9: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
11: aload 0
getfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: aload 2
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/swing/TimerQueue;
6 9 1 threadGroup Ljava/lang/ThreadGroup;
Exception table:
from to target type
4 10 10 any
void addTimer(javax.swing.Timer, long);
descriptor: (Ljavax/swing/Timer;J)V
flags: (0x0000)
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
aload 1
invokevirtual javax.swing.TimerQueue.containsTimer:(Ljavax/swing/Timer;)Z
ifne 11
2: aload 0
new javax.swing.TimerQueue$DelayedTimer
dup
aload 1
3: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 2
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
4: invokestatic javax.swing.TimerQueue.now:()J
5: ladd
invokespecial javax.swing.TimerQueue$DelayedTimer.<init>:(Ljavax/swing/Timer;J)V
6: invokevirtual javax.swing.TimerQueue.addTimer:(Ljavax/swing/TimerQueue$DelayedTimer;)V
7: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
9: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
10: aload 4
athrow
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/TimerQueue;
0 13 1 timer Ljavax/swing/Timer;
0 13 2 delayMillis J
Exception table:
from to target type
1 8 8 any
MethodParameters:
Name Flags
timer
delayMillis
private void addTimer(javax.swing.TimerQueue$DelayedTimer);
descriptor: (Ljavax/swing/TimerQueue$DelayedTimer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic javax.swing.TimerQueue.$assertionsDisabled:Z
ifne 2
aload 1
ifnull 1
aload 0
aload 1
invokevirtual javax.swing.TimerQueue$DelayedTimer.getTimer:()Ljavax/swing/Timer;
invokevirtual javax.swing.TimerQueue.containsTimer:(Ljavax/swing/Timer;)Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.swing.TimerQueue$DelayedTimer.getTimer:()Ljavax/swing/Timer;
astore 2
start local 2 3: aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
4: aload 2
aload 1
putfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
5: aload 0
getfield javax.swing.TimerQueue.queue:Ljava/util/concurrent/DelayQueue;
aload 1
invokevirtual java.util.concurrent.DelayQueue.add:(Ljava/util/concurrent/Delayed;)Z
pop
6: goto 10
StackMap locals: javax.swing.TimerQueue javax.swing.TimerQueue$DelayedTimer javax.swing.Timer
StackMap stack: java.lang.Throwable
7: astore 3
8: aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: aload 3
athrow
10: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/TimerQueue;
0 12 1 delayedTimer Ljavax/swing/TimerQueue$DelayedTimer;
3 12 2 timer Ljavax/swing/Timer;
Exception table:
from to target type
4 7 7 any
MethodParameters:
Name Flags
delayedTimer
void removeTimer(javax.swing.Timer);
descriptor: (Ljavax/swing/Timer;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 1
getfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
ifnull 8
2: aload 0
getfield javax.swing.TimerQueue.queue:Ljava/util/concurrent/DelayQueue;
aload 1
getfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
invokevirtual java.util.concurrent.DelayQueue.remove:(Ljava/lang/Object;)Z
pop
3: aload 1
aconst_null
putfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
4: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 2
athrow
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/TimerQueue;
0 10 1 timer Ljavax/swing/Timer;
Exception table:
from to target type
1 5 5 any
MethodParameters:
Name Flags
timer
boolean containsTimer(javax.swing.Timer);
descriptor: (Ljavax/swing/Timer;)Z
flags: (0x0000)
Code:
stack=1, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 1
getfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
ifnull 2
iconst_1
goto 3
StackMap locals:
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 3
4: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: iload 3
ireturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 1
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/swing/TimerQueue;
0 9 1 timer Ljavax/swing/Timer;
Exception table:
from to target type
1 4 6 any
MethodParameters:
Name Flags
timer
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: goto 27
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TimerQueue.queue:Ljava/util/concurrent/DelayQueue;
invokevirtual java.util.concurrent.DelayQueue.take:()Ljava/util/concurrent/Delayed;
checkcast javax.swing.TimerQueue$DelayedTimer
astore 1
start local 1 3: aload 1
invokevirtual javax.swing.TimerQueue$DelayedTimer.getTimer:()Ljavax/swing/Timer;
astore 2
start local 2 4: aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
5: aload 2
getfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
astore 3
start local 3 6: aload 3
aload 1
if_acmpne 22
7: aload 2
invokevirtual javax.swing.Timer.post:()V
8: aload 2
aconst_null
putfield javax.swing.Timer.delayedTimer:Ljavax/swing/TimerQueue$DelayedTimer;
9: aload 2
invokevirtual javax.swing.Timer.isRepeats:()Z
ifeq 22
10: aload 3
invokestatic javax.swing.TimerQueue.now:()J
11: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
12: aload 2
invokevirtual javax.swing.Timer.getDelay:()I
i2l
13: invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
ladd
14: invokevirtual javax.swing.TimerQueue$DelayedTimer.setTime:(J)V
15: aload 0
aload 3
invokevirtual javax.swing.TimerQueue.addTimer:(Ljavax/swing/TimerQueue$DelayedTimer;)V
end local 3 16: goto 22
StackMap locals: javax.swing.TimerQueue javax.swing.TimerQueue$DelayedTimer javax.swing.Timer
StackMap stack: java.lang.SecurityException
17: pop
18: aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
goto 27
19: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
20: aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
21: aload 4
athrow
22: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.Timer.getLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
end local 2 end local 1 23: goto 27
StackMap locals: javax.swing.TimerQueue
StackMap stack: java.lang.InterruptedException
24: pop
25: invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
invokevirtual sun.awt.AppContext.isDisposed:()Z
ifeq 27
26: goto 39
27: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TimerQueue.running:Z
ifne 2
28: goto 39
29: StackMap locals:
StackMap stack: java.lang.ThreadDeath
astore 1
start local 1 30: aload 0
getfield javax.swing.TimerQueue.queue:Ljava/util/concurrent/DelayQueue;
invokevirtual java.util.concurrent.DelayQueue.iterator:()Ljava/util/Iterator;
astore 3
goto 33
StackMap locals: javax.swing.TimerQueue java.lang.ThreadDeath top java.util.Iterator
StackMap stack:
31: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.swing.TimerQueue$DelayedTimer
astore 2
start local 2 32: aload 2
invokevirtual javax.swing.TimerQueue$DelayedTimer.getTimer:()Ljavax/swing/Timer;
invokevirtual javax.swing.Timer.cancelEvent:()V
end local 2 33: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 31
34: aload 1
athrow
end local 1 35: StackMap locals: javax.swing.TimerQueue
StackMap stack: java.lang.Throwable
astore 5
36: aload 0
iconst_0
putfield javax.swing.TimerQueue.running:Z
37: aload 0
getfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
38: aload 5
athrow
39: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield javax.swing.TimerQueue.running:Z
40: aload 0
getfield javax.swing.TimerQueue.runningLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
41: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljavax/swing/TimerQueue;
3 23 1 runningTimer Ljavax/swing/TimerQueue$DelayedTimer;
4 23 2 timer Ljavax/swing/Timer;
6 16 3 delayedTimer Ljavax/swing/TimerQueue$DelayedTimer;
30 35 1 td Ljava/lang/ThreadDeath;
32 33 2 delayedTimer Ljavax/swing/TimerQueue$DelayedTimer;
Exception table:
from to target type
5 16 17 Class java.lang.SecurityException
5 18 19 any
2 23 24 Class java.lang.InterruptedException
1 28 29 Class java.lang.ThreadDeath
1 35 35 any
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "TimerQueue ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: iconst_1
istore 2
start local 2 3: aload 0
getfield javax.swing.TimerQueue.queue:Ljava/util/concurrent/DelayQueue;
invokevirtual java.util.concurrent.DelayQueue.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: javax.swing.TimerQueue java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.swing.TimerQueue$DelayedTimer
astore 3
start local 3 5: iload 2
ifne 7
6: aload 1
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: StackMap locals: javax.swing.TimerQueue java.lang.StringBuilder int javax.swing.TimerQueue$DelayedTimer java.util.Iterator
StackMap stack:
aload 1
aload 3
invokevirtual javax.swing.TimerQueue$DelayedTimer.getTimer:()Ljavax/swing/Timer;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: iconst_0
istore 2
end local 3 9: StackMap locals: javax.swing.TimerQueue java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 1
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/TimerQueue;
1 12 1 buf Ljava/lang/StringBuilder;
3 12 2 isFirst Z
5 9 3 delayedTimer Ljavax/swing/TimerQueue$DelayedTimer;
private static long now();
descriptor: ()J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokestatic java.lang.System.nanoTime:()J
getstatic javax.swing.TimerQueue.NANO_ORIGIN:J
lsub
lreturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "TimerQueue.java"
NestMembers:
javax.swing.TimerQueue$1 javax.swing.TimerQueue$DelayedTimer
InnerClasses:
javax.swing.TimerQueue$1
DelayedTimer = javax.swing.TimerQueue$DelayedTimer of javax.swing.TimerQueue