public final class javafx.event.WeakEventHandler<T extends javafx.event.Event> implements javafx.event.EventHandler<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javafx.event.WeakEventHandler
super_class: java.lang.Object
{
private final java.lang.ref.WeakReference<javafx.event.EventHandler<T>> weakRef;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/WeakReference<Ljavafx/event/EventHandler<TT;>;>;
public void <init>(javafx.event.EventHandler<T>);
descriptor: (Ljavafx/event/EventHandler;)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.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield javafx.event.WeakEventHandler.weakRef:Ljava/lang/ref/WeakReference;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavafx/event/WeakEventHandler<TT;>;
0 3 1 eventHandler Ljavafx/event/EventHandler<TT;>;
Signature: (Ljavafx/event/EventHandler<TT;>;)V
RuntimeVisibleParameterAnnotations:
0:
javafx.beans.NamedArg(value = "eventHandler")
MethodParameters:
Name Flags
eventHandler final
public boolean wasGarbageCollected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.event.WeakEventHandler.weakRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
ifnonnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/event/WeakEventHandler<TT;>;
public void handle();
descriptor: (Ljavafx/event/Event;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javafx.event.WeakEventHandler.weakRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast javafx.event.EventHandler
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 1
invokeinterface javafx.event.EventHandler.handle:(Ljavafx/event/Event;)V
3: StackMap locals: javafx.event.EventHandler
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavafx/event/WeakEventHandler<TT;>;
0 4 1 event TT;
1 4 2 eventHandler Ljavafx/event/EventHandler<TT;>;
Signature: (TT;)V
MethodParameters:
Name Flags
event final
void clear();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javafx.event.WeakEventHandler.weakRef:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavafx/event/WeakEventHandler<TT;>;
}
Signature: <T:Ljavafx/event/Event;>Ljava/lang/Object;Ljavafx/event/EventHandler<TT;>;
SourceFile: "WeakEventHandler.java"