class javafx.scene.media.MediaPlayerShutdownHook implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javafx.scene.media.MediaPlayerShutdownHook
super_class: java.lang.Object
{
private static final java.util.List<java.lang.ref.WeakReference<javafx.scene.media.MediaPlayer>> playerRefs;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;>;
private static boolean isShutdown;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
1: iconst_0
putstatic javafx.scene.media.MediaPlayerShutdownHook.isShutdown:Z
2: invokestatic com.sun.javafx.tk.Toolkit.getToolkit:()Lcom/sun/javafx/tk/Toolkit;
new javafx.scene.media.MediaPlayerShutdownHook
dup
invokespecial javafx.scene.media.MediaPlayerShutdownHook.<init>:()V
invokevirtual com.sun.javafx.tk.Toolkit.addShutdownHook:(Ljava/lang/Runnable;)V
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavafx/scene/media/MediaPlayerShutdownHook;
public static void addMediaPlayer(javafx.scene.media.MediaPlayer);
descriptor: (Ljavafx/scene/media/MediaPlayer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
dup
astore 1
monitorenter
1: getstatic javafx.scene.media.MediaPlayerShutdownHook.isShutdown:Z
ifeq 6
2: aload 0
invokevirtual javafx.scene.media.MediaPlayer.retrieveJfxPlayer:()Lcom/sun/media/jfxmedia/MediaPlayer;
astore 2
start local 2 3: aload 2
ifnull 13
4: aload 2
invokeinterface com.sun.media.jfxmedia.MediaPlayer.dispose:()V
end local 2 5: goto 13
6: StackMap locals: java.util.List
StackMap stack:
getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
astore 2
start local 2 7: goto 11
8: StackMap locals: java.util.ListIterator
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast javafx.scene.media.MediaPlayer
astore 3
start local 3 9: aload 3
ifnonnull 11
10: aload 2
invokeinterface java.util.ListIterator.remove:()V
end local 3 11: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 8
end local 2 12: getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
new java.lang.ref.WeakReference
dup
aload 0
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
13: StackMap locals:
StackMap stack:
aload 1
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 1
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 player Ljavafx/scene/media/MediaPlayer;
3 5 2 jfxPlayer Lcom/sun/media/jfxmedia/MediaPlayer;
7 12 2 it Ljava/util/ListIterator<Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;>;
9 11 3 l Ljavafx/scene/media/MediaPlayer;
Exception table:
from to target type
1 14 15 any
15 16 15 any
MethodParameters:
Name Flags
player
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
dup
astore 1
monitorenter
1: getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
astore 2
start local 2 2: goto 11
3: StackMap locals: java.util.List java.util.ListIterator
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast javafx.scene.media.MediaPlayer
astore 3
start local 3 4: aload 3
ifnull 10
5: aload 3
invokevirtual javafx.scene.media.MediaPlayer.destroyMediaTimer:()V
6: aload 3
invokevirtual javafx.scene.media.MediaPlayer.retrieveJfxPlayer:()Lcom/sun/media/jfxmedia/MediaPlayer;
astore 4
start local 4 7: aload 4
ifnull 11
8: aload 4
invokeinterface com.sun.media.jfxmedia.MediaPlayer.dispose:()V
end local 4 9: goto 11
10: StackMap locals: javafx.scene.media.MediaPlayer
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.remove:()V
end local 3 11: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 3
end local 2 12: iconst_1
putstatic javafx.scene.media.MediaPlayerShutdownHook.isShutdown:Z
13: aload 1
monitorexit
14: goto 17
StackMap locals: javafx.scene.media.MediaPlayerShutdownHook java.util.List
StackMap stack: java.lang.Throwable
15: aload 1
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljavafx/scene/media/MediaPlayerShutdownHook;
2 12 2 it Ljava/util/ListIterator<Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;>;
4 11 3 player Ljavafx/scene/media/MediaPlayer;
7 9 4 jfxPlayer Lcom/sun/media/jfxmedia/MediaPlayer;
Exception table:
from to target type
1 14 15 any
15 16 15 any
}
SourceFile: "MediaPlayer.java"