class javafx.scene.media.MediaTimerTask extends java.util.TimerTask
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javafx.scene.media.MediaTimerTask
super_class: java.util.TimerTask
{
private java.util.Timer mediaTimer;
descriptor: Ljava/util/Timer;
flags: (0x0002) ACC_PRIVATE
static final java.lang.Object timerLock;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private java.lang.ref.WeakReference<javafx.scene.media.MediaPlayer> playerRef;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic javafx.scene.media.MediaTimerTask.timerLock:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(javafx.scene.media.MediaPlayer);
descriptor: (Ljavafx/scene/media/MediaPlayer;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.TimerTask.<init>:()V
1: aload 0
aconst_null
putfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
2: aload 0
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield javafx.scene.media.MediaTimerTask.playerRef:Ljava/lang/ref/WeakReference;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/media/MediaTimerTask;
0 4 1 player Ljavafx/scene/media/MediaPlayer;
MethodParameters:
Name Flags
player
void start();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
ifnonnull 3
1: aload 0
new java.util.Timer
dup
iconst_1
invokespecial java.util.Timer.<init>:(Z)V
putfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
2: aload 0
getfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
aload 0
lconst_0
ldc 100
invokevirtual java.util.Timer.scheduleAtFixedRate:(Ljava/util/TimerTask;JJ)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/media/MediaTimerTask;
void stop();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
ifnull 3
1: aload 0
getfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
invokevirtual java.util.Timer.cancel:()V
2: aload 0
aconst_null
putfield javafx.scene.media.MediaTimerTask.mediaTimer:Ljava/util/Timer;
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/scene/media/MediaTimerTask;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: getstatic javafx.scene.media.MediaTimerTask.timerLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield javafx.scene.media.MediaTimerTask.playerRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast javafx.scene.media.MediaPlayer
astore 2
start local 2 2: aload 2
ifnull 5
3: aload 2
invokedynamic run(Ljavafx/scene/media/MediaPlayer;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
javafx/scene/media/MediaTimerTask.lambda$0(Ljavafx/scene/media/MediaPlayer;)V (6)
()V
invokestatic javafx.application.Platform.runLater:(Ljava/lang/Runnable;)V
4: goto 6
5: StackMap locals: java.lang.Object javafx.scene.media.MediaPlayer
StackMap stack:
aload 0
invokevirtual javafx.scene.media.MediaTimerTask.cancel:()Z
pop
end local 2 6: StackMap locals:
StackMap stack:
aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavafx/scene/media/MediaTimerTask;
2 6 2 player Ljavafx/scene/media/MediaPlayer;
Exception table:
from to target type
1 7 8 any
8 9 8 any
private static void lambda$0(javafx.scene.media.MediaPlayer);
descriptor: (Ljavafx/scene/media/MediaPlayer;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=1
0: getstatic javafx.scene.media.MediaTimerTask.timerLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual javafx.scene.media.MediaPlayer.updateTime:()V
2: aload 1
monitorexit
3: goto 6
StackMap locals: javafx.scene.media.MediaPlayer java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 3 4 any
4 5 4 any
}
SourceFile: "MediaPlayer.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles