public class sun.awt.SunDisplayChanger
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.SunDisplayChanger
super_class: java.lang.Object
{
private static final sun.util.logging.PlatformLogger log;
descriptor: Lsun/util/logging/PlatformLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.util.Map<sun.awt.DisplayChangedListener, java.lang.Void> listeners;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Lsun/awt/DisplayChangedListener;Ljava/lang/Void;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "sun.awt.multiscreen.SunDisplayChanger"
invokestatic sun.util.logging.PlatformLogger.getLogger:(Ljava/lang/String;)Lsun/util/logging/PlatformLogger;
putstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.WeakHashMap
dup
iconst_1
invokespecial java.util.WeakHashMap.<init>:(I)V
invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
putfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/awt/SunDisplayChanger;
public void add(sun.awt.DisplayChangedListener);
descriptor: (Lsun/awt/DisplayChangedListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINE:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 3
1: aload 1
ifnonnull 3
2: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
ldc "Assertion (theListener != null) failed"
invokevirtual sun.util.logging.PlatformLogger.fine:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINER:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 5
4: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
new java.lang.StringBuilder
dup
ldc "Adding listener: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.util.logging.PlatformLogger.finer:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
aload 1
aconst_null
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/SunDisplayChanger;
0 7 1 theListener Lsun/awt/DisplayChangedListener;
MethodParameters:
Name Flags
theListener
public void remove(sun.awt.DisplayChangedListener);
descriptor: (Lsun/awt/DisplayChangedListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINE:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 3
1: aload 1
ifnonnull 3
2: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
ldc "Assertion (theListener != null) failed"
invokevirtual sun.util.logging.PlatformLogger.fine:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINER:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 5
4: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
new java.lang.StringBuilder
dup
ldc "Removing listener: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.util.logging.PlatformLogger.finer:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/awt/SunDisplayChanger;
0 7 1 theListener Lsun/awt/DisplayChangedListener;
MethodParameters:
Name Flags
theListener
public void notifyListeners();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINEST:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 2
1: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
ldc "notifyListeners"
invokevirtual sun.util.logging.PlatformLogger.finest:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
dup
astore 2
monitorenter
3: new java.util.HashSet
dup
aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 1
start local 1 4: aload 2
monitorexit
5: goto 8
end local 1 StackMap locals: sun.awt.SunDisplayChanger top java.util.Map
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
start local 1 8: StackMap locals: sun.awt.SunDisplayChanger java.util.Set
StackMap stack:
aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
start local 2 9: goto 17
10: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.awt.DisplayChangedListener
astore 3
start local 3 11: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINEST:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 13
12: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
new java.lang.StringBuilder
dup
ldc "displayChanged for listener: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.util.logging.PlatformLogger.finest:(Ljava/lang/String;)V
13: StackMap locals: sun.awt.DisplayChangedListener
StackMap stack:
aload 3
invokeinterface sun.awt.DisplayChangedListener.displayChanged:()V
14: goto 17
StackMap locals:
StackMap stack: java.awt.IllegalComponentStateException
15: pop
16: aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 17: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/awt/SunDisplayChanger;
4 6 1 cloneSet Ljava/util/Set<Lsun/awt/DisplayChangedListener;>;
8 19 1 cloneSet Ljava/util/Set<Lsun/awt/DisplayChangedListener;>;
9 19 2 itr Ljava/util/Iterator<Lsun/awt/DisplayChangedListener;>;
11 17 3 current Lsun/awt/DisplayChangedListener;
Exception table:
from to target type
3 5 6 any
6 7 6 any
11 14 15 Class java.awt.IllegalComponentStateException
public void notifyPaletteChanged();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINEST:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 2
1: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
ldc "notifyPaletteChanged"
invokevirtual sun.util.logging.PlatformLogger.finest:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
dup
astore 2
monitorenter
3: new java.util.HashSet
dup
aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 1
start local 1 4: aload 2
monitorexit
5: goto 8
end local 1 StackMap locals: sun.awt.SunDisplayChanger top java.util.Map
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
start local 1 8: StackMap locals: sun.awt.SunDisplayChanger java.util.Set
StackMap stack:
aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
start local 2 9: goto 17
10: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.awt.DisplayChangedListener
astore 3
start local 3 11: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
getstatic sun.util.logging.PlatformLogger$Level.FINEST:Lsun/util/logging/PlatformLogger$Level;
invokevirtual sun.util.logging.PlatformLogger.isLoggable:(Lsun/util/logging/PlatformLogger$Level;)Z
ifeq 13
12: getstatic sun.awt.SunDisplayChanger.log:Lsun/util/logging/PlatformLogger;
new java.lang.StringBuilder
dup
ldc "paletteChanged for listener: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.util.logging.PlatformLogger.finest:(Ljava/lang/String;)V
13: StackMap locals: sun.awt.DisplayChangedListener
StackMap stack:
aload 3
invokeinterface sun.awt.DisplayChangedListener.paletteChanged:()V
14: goto 17
StackMap locals:
StackMap stack: java.awt.IllegalComponentStateException
15: pop
16: aload 0
getfield sun.awt.SunDisplayChanger.listeners:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 17: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/awt/SunDisplayChanger;
4 6 1 cloneSet Ljava/util/Set<Lsun/awt/DisplayChangedListener;>;
8 19 1 cloneSet Ljava/util/Set<Lsun/awt/DisplayChangedListener;>;
9 19 2 itr Ljava/util/Iterator<Lsun/awt/DisplayChangedListener;>;
11 17 3 current Lsun/awt/DisplayChangedListener;
Exception table:
from to target type
3 5 6 any
6 7 6 any
11 14 15 Class java.awt.IllegalComponentStateException
}
SourceFile: "SunDisplayChanger.java"
InnerClasses:
public final Level = sun.util.logging.PlatformLogger$Level of sun.util.logging.PlatformLogger