public class java.awt.datatransfer.Clipboard
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.awt.datatransfer.Clipboard
super_class: java.lang.Object
{
java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0000)
protected java.awt.datatransfer.ClipboardOwner owner;
descriptor: Ljava/awt/datatransfer/ClipboardOwner;
flags: (0x0004) ACC_PROTECTED
protected java.awt.datatransfer.Transferable contents;
descriptor: Ljava/awt/datatransfer/Transferable;
flags: (0x0004) ACC_PROTECTED
private java.util.Set<java.awt.datatransfer.FlavorListener> flavorListeners;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/awt/datatransfer/FlavorListener;>;
private java.util.Set<java.awt.datatransfer.DataFlavor> currentDataFlavors;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/awt/datatransfer/DataFlavor;>;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield java.awt.datatransfer.Clipboard.name:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/datatransfer/Clipboard;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.datatransfer.Clipboard.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/datatransfer/Clipboard;
public synchronized void setContents(java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner);
descriptor: (Ljava/awt/datatransfer/Transferable;Ljava/awt/datatransfer/ClipboardOwner;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.awt.datatransfer.Clipboard.owner:Ljava/awt/datatransfer/ClipboardOwner;
astore 3
start local 3 1: aload 0
getfield java.awt.datatransfer.Clipboard.contents:Ljava/awt/datatransfer/Transferable;
astore 4
start local 4 2: aload 0
aload 2
putfield java.awt.datatransfer.Clipboard.owner:Ljava/awt/datatransfer/ClipboardOwner;
3: aload 0
aload 1
putfield java.awt.datatransfer.Clipboard.contents:Ljava/awt/datatransfer/Transferable;
4: aload 3
ifnull 6
aload 3
aload 2
if_acmpeq 6
5: invokestatic sun.datatransfer.DataFlavorUtil.getDesktopService:()Lsun/datatransfer/DesktopDatatransferService;
aload 0
aload 3
aload 4
invokedynamic run(Ljava/awt/datatransfer/Clipboard;Ljava/awt/datatransfer/ClipboardOwner;Ljava/awt/datatransfer/Transferable;)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
java/awt/datatransfer/Clipboard.lambda$0(Ljava/awt/datatransfer/ClipboardOwner;Ljava/awt/datatransfer/Transferable;)V (7)
()V
invokeinterface sun.datatransfer.DesktopDatatransferService.invokeOnEventThread:(Ljava/lang/Runnable;)V
6: StackMap locals: java.awt.datatransfer.ClipboardOwner java.awt.datatransfer.Transferable
StackMap stack:
aload 0
invokevirtual java.awt.datatransfer.Clipboard.fireFlavorsChanged:()V
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/awt/datatransfer/Clipboard;
0 8 1 contents Ljava/awt/datatransfer/Transferable;
0 8 2 owner Ljava/awt/datatransfer/ClipboardOwner;
1 8 3 oldOwner Ljava/awt/datatransfer/ClipboardOwner;
2 8 4 oldContents Ljava/awt/datatransfer/Transferable;
MethodParameters:
Name Flags
contents
owner
public synchronized java.awt.datatransfer.Transferable getContents(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/awt/datatransfer/Transferable;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.awt.datatransfer.Clipboard.contents:Ljava/awt/datatransfer/Transferable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/datatransfer/Clipboard;
0 1 1 requestor Ljava/lang/Object;
MethodParameters:
Name Flags
requestor
public java.awt.datatransfer.DataFlavor[] getAvailableDataFlavors();
descriptor: ()[Ljava/awt/datatransfer/DataFlavor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual java.awt.datatransfer.Clipboard.getContents:(Ljava/lang/Object;)Ljava/awt/datatransfer/Transferable;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
anewarray java.awt.datatransfer.DataFlavor
areturn
3: StackMap locals: java.awt.datatransfer.Transferable
StackMap stack:
aload 1
invokeinterface java.awt.datatransfer.Transferable.getTransferDataFlavors:()[Ljava/awt/datatransfer/DataFlavor;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/datatransfer/Clipboard;
1 4 1 cntnts Ljava/awt/datatransfer/Transferable;
public boolean isDataFlavorAvailable(java.awt.datatransfer.DataFlavor);
descriptor: (Ljava/awt/datatransfer/DataFlavor;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "flavor"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual java.awt.datatransfer.Clipboard.getContents:(Ljava/lang/Object;)Ljava/awt/datatransfer/Transferable;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: java.awt.datatransfer.Transferable
StackMap stack:
aload 2
aload 1
invokeinterface java.awt.datatransfer.Transferable.isDataFlavorSupported:(Ljava/awt/datatransfer/DataFlavor;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/awt/datatransfer/Clipboard;
0 6 1 flavor Ljava/awt/datatransfer/DataFlavor;
3 6 2 cntnts Ljava/awt/datatransfer/Transferable;
MethodParameters:
Name Flags
flavor
public java.lang.Object getData(java.awt.datatransfer.DataFlavor);
descriptor: (Ljava/awt/datatransfer/DataFlavor;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "flavor"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual java.awt.datatransfer.Clipboard.getContents:(Ljava/lang/Object;)Ljava/awt/datatransfer/Transferable;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: new java.awt.datatransfer.UnsupportedFlavorException
dup
aload 1
invokespecial java.awt.datatransfer.UnsupportedFlavorException.<init>:(Ljava/awt/datatransfer/DataFlavor;)V
athrow
5: StackMap locals: java.awt.datatransfer.Transferable
StackMap stack:
aload 2
aload 1
invokeinterface java.awt.datatransfer.Transferable.getTransferData:(Ljava/awt/datatransfer/DataFlavor;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/awt/datatransfer/Clipboard;
0 6 1 flavor Ljava/awt/datatransfer/DataFlavor;
3 6 2 cntnts Ljava/awt/datatransfer/Transferable;
Exceptions:
throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
MethodParameters:
Name Flags
flavor
public synchronized void addFlavorListener(java.awt.datatransfer.FlavorListener);
descriptor: (Ljava/awt/datatransfer/FlavorListener;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
ifnonnull 5
3: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
4: aload 0
aload 0
invokevirtual java.awt.datatransfer.Clipboard.getAvailableDataFlavorSet:()Ljava/util/Set;
putfield java.awt.datatransfer.Clipboard.currentDataFlavors:Ljava/util/Set;
5: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/awt/datatransfer/Clipboard;
0 7 1 listener Ljava/awt/datatransfer/FlavorListener;
MethodParameters:
Name Flags
listener
public synchronized void removeFlavorListener(java.awt.datatransfer.FlavorListener);
descriptor: (Ljava/awt/datatransfer/FlavorListener;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
ifnonnull 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/awt/datatransfer/Clipboard;
0 4 1 listener Ljava/awt/datatransfer/FlavorListener;
MethodParameters:
Name Flags
listener
public synchronized java.awt.datatransfer.FlavorListener[] getFlavorListeners();
descriptor: ()[Ljava/awt/datatransfer/FlavorListener;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
ifnonnull 1
iconst_0
anewarray java.awt.datatransfer.FlavorListener
goto 2
1: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
anewarray java.awt.datatransfer.FlavorListener
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.awt.datatransfer.FlavorListener[]
2: StackMap locals:
StackMap stack: java.awt.datatransfer.FlavorListener[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/awt/datatransfer/Clipboard;
private void fireFlavorsChanged();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield java.awt.datatransfer.Clipboard.currentDataFlavors:Ljava/util/Set;
astore 1
start local 1 3: aload 0
aload 0
invokevirtual java.awt.datatransfer.Clipboard.getAvailableDataFlavorSet:()Ljava/util/Set;
putfield java.awt.datatransfer.Clipboard.currentDataFlavors:Ljava/util/Set;
4: aload 1
aload 0
getfield java.awt.datatransfer.Clipboard.currentDataFlavors:Ljava/util/Set;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
5: return
6: StackMap locals: java.util.Set
StackMap stack:
aload 0
getfield java.awt.datatransfer.Clipboard.flavorListeners:Ljava/util/Set;
aload 0
invokedynamic accept(Ljava/awt/datatransfer/Clipboard;)Ljava/util/function/Consumer;
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:
(Ljava/lang/Object;)V
java/awt/datatransfer/Clipboard.lambda$1(Ljava/awt/datatransfer/FlavorListener;)V (7)
(Ljava/awt/datatransfer/FlavorListener;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/awt/datatransfer/Clipboard;
3 8 1 prevDataFlavors Ljava/util/Set<Ljava/awt/datatransfer/DataFlavor;>;
private java.util.Set<java.awt.datatransfer.DataFlavor> getAvailableDataFlavorSet();
descriptor: ()Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 1: aload 0
aconst_null
invokevirtual java.awt.datatransfer.Clipboard.getContents:(Ljava/lang/Object;)Ljava/awt/datatransfer/Transferable;
astore 2
start local 2 2: aload 2
ifnull 6
3: aload 2
invokeinterface java.awt.datatransfer.Transferable.getTransferDataFlavors:()[Ljava/awt/datatransfer/DataFlavor;
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 1
aload 3
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 3 6: StackMap locals: java.util.Set java.awt.datatransfer.Transferable
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/awt/datatransfer/Clipboard;
1 7 1 set Ljava/util/Set<Ljava/awt/datatransfer/DataFlavor;>;
2 7 2 contents Ljava/awt/datatransfer/Transferable;
4 6 3 flavors [Ljava/awt/datatransfer/DataFlavor;
Signature: ()Ljava/util/Set<Ljava/awt/datatransfer/DataFlavor;>;
private void lambda$0(java.awt.datatransfer.ClipboardOwner, java.awt.datatransfer.Transferable);
descriptor: (Ljava/awt/datatransfer/ClipboardOwner;Ljava/awt/datatransfer/Transferable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 1
aload 0
aload 2
invokeinterface java.awt.datatransfer.ClipboardOwner.lostOwnership:(Ljava/awt/datatransfer/Clipboard;Ljava/awt/datatransfer/Transferable;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/datatransfer/Clipboard;
private void lambda$1(java.awt.datatransfer.FlavorListener);
descriptor: (Ljava/awt/datatransfer/FlavorListener;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic sun.datatransfer.DataFlavorUtil.getDesktopService:()Lsun/datatransfer/DesktopDatatransferService;
aload 0
aload 1
invokedynamic run(Ljava/awt/datatransfer/Clipboard;Ljava/awt/datatransfer/FlavorListener;)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
java/awt/datatransfer/Clipboard.lambda$2(Ljava/awt/datatransfer/FlavorListener;)V (7)
()V
invokeinterface sun.datatransfer.DesktopDatatransferService.invokeOnEventThread:(Ljava/lang/Runnable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/awt/datatransfer/Clipboard;
0 2 1 listener Ljava/awt/datatransfer/FlavorListener;
private void lambda$2(java.awt.datatransfer.FlavorListener);
descriptor: (Ljava/awt/datatransfer/FlavorListener;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 0: aload 1
new java.awt.datatransfer.FlavorEvent
dup
aload 0
invokespecial java.awt.datatransfer.FlavorEvent.<init>:(Ljava/awt/datatransfer/Clipboard;)V
invokeinterface java.awt.datatransfer.FlavorListener.flavorsChanged:(Ljava/awt/datatransfer/FlavorEvent;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/awt/datatransfer/Clipboard;
}
SourceFile: "Clipboard.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles