public abstract class sun.management.NotificationEmitterSupport implements javax.management.NotificationEmitter
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.management.NotificationEmitterSupport
super_class: java.lang.Object
{
private java.lang.Object listenerLock;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private java.util.List<sun.management.NotificationEmitterSupport$ListenerInfo> listenerList;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lsun/management/NotificationEmitterSupport$ListenerInfo;>;
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.management.NotificationEmitterSupport.listenerLock:Ljava/lang/Object;
2: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/management/NotificationEmitterSupport;
public void addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object);
descriptor: (Ljavax/management/NotificationListener;Ljavax/management/NotificationFilter;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Listener can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.management.NotificationEmitterSupport.listenerLock:Ljava/lang/Object;
dup
astore 4
monitorenter
3: new java.util.ArrayList
dup
aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
iadd
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 4: aload 5
aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
5: aload 5
new sun.management.NotificationEmitterSupport$ListenerInfo
dup
aload 0
aload 1
aload 2
aload 3
invokespecial sun.management.NotificationEmitterSupport$ListenerInfo.<init>:(Lsun/management/NotificationEmitterSupport;Ljavax/management/NotificationListener;Ljavax/management/NotificationFilter;Ljava/lang/Object;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 0
aload 5
putfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
end local 5 7: aload 4
monitorexit
8: goto 11
StackMap locals: sun.management.NotificationEmitterSupport javax.management.NotificationListener javax.management.NotificationFilter java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
9: aload 4
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/management/NotificationEmitterSupport;
0 12 1 listener Ljavax/management/NotificationListener;
0 12 2 filter Ljavax/management/NotificationFilter;
0 12 3 handback Ljava/lang/Object;
4 7 5 newList Ljava/util/List<Lsun/management/NotificationEmitterSupport$ListenerInfo;>;
Exception table:
from to target type
3 8 9 any
9 10 9 any
MethodParameters:
Name Flags
listener
filter
handback
public void removeNotificationListener(javax.management.NotificationListener);
descriptor: (Ljavax/management/NotificationListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.management.NotificationEmitterSupport.listenerLock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: new java.util.ArrayList
dup
aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 3
start local 3 2: aload 3
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 4
start local 4 3: goto 8
4: StackMap locals: java.lang.Object java.util.List int
StackMap stack:
aload 3
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.management.NotificationEmitterSupport$ListenerInfo
astore 5
start local 5 5: aload 5
getfield sun.management.NotificationEmitterSupport$ListenerInfo.listener:Ljavax/management/NotificationListener;
aload 1
if_acmpne 7
6: aload 3
iload 4
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 5 7: StackMap locals:
StackMap stack:
iinc 4 -1
StackMap locals:
StackMap stack:
8: iload 4
ifge 4
end local 4 9: aload 3
invokeinterface java.util.List.size:()I
aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpne 11
10: new javax.management.ListenerNotFoundException
dup
ldc "Listener not registered"
invokespecial javax.management.ListenerNotFoundException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
end local 3 12: aload 2
monitorexit
13: goto 16
StackMap locals: sun.management.NotificationEmitterSupport javax.management.NotificationListener java.lang.Object
StackMap stack: java.lang.Throwable
14: aload 2
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/management/NotificationEmitterSupport;
0 17 1 listener Ljavax/management/NotificationListener;
2 12 3 newList Ljava/util/List<Lsun/management/NotificationEmitterSupport$ListenerInfo;>;
3 9 4 i I
5 7 5 li Lsun/management/NotificationEmitterSupport$ListenerInfo;
Exception table:
from to target type
1 13 14 any
14 15 14 any
Exceptions:
throws javax.management.ListenerNotFoundException
MethodParameters:
Name Flags
listener
public void removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object);
descriptor: (Ljavax/management/NotificationListener;Ljavax/management/NotificationFilter;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: aload 0
getfield sun.management.NotificationEmitterSupport.listenerLock:Ljava/lang/Object;
dup
astore 5
monitorenter
2: new java.util.ArrayList
dup
aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 6
start local 6 3: aload 6
invokeinterface java.util.List.size:()I
istore 7
start local 7 4: iconst_0
istore 8
start local 8 5: goto 16
6: StackMap locals: sun.management.NotificationEmitterSupport javax.management.NotificationListener javax.management.NotificationFilter java.lang.Object int java.lang.Object java.util.List int int
StackMap stack:
aload 6
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.management.NotificationEmitterSupport$ListenerInfo
astore 9
start local 9 7: aload 9
getfield sun.management.NotificationEmitterSupport$ListenerInfo.listener:Ljavax/management/NotificationListener;
aload 1
if_acmpne 15
8: iconst_1
istore 4
9: aload 9
getfield sun.management.NotificationEmitterSupport$ListenerInfo.filter:Ljavax/management/NotificationFilter;
aload 2
if_acmpne 15
10: aload 9
getfield sun.management.NotificationEmitterSupport$ListenerInfo.handback:Ljava/lang/Object;
aload 3
if_acmpne 15
11: aload 6
iload 8
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
12: aload 0
aload 6
putfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
13: aload 5
monitorexit
14: return
end local 9 15: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
16: iload 8
iload 7
if_icmplt 6
end local 8 end local 7 end local 6 17: aload 5
monitorexit
18: goto 21
StackMap locals: sun.management.NotificationEmitterSupport javax.management.NotificationListener javax.management.NotificationFilter java.lang.Object int java.lang.Object
StackMap stack: java.lang.Throwable
19: aload 5
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
iload 4
ifeq 23
22: new javax.management.ListenerNotFoundException
dup
ldc "Listener not registered with this filter and handback"
invokespecial javax.management.ListenerNotFoundException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack:
new javax.management.ListenerNotFoundException
dup
ldc "Listener not registered"
invokespecial javax.management.ListenerNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/management/NotificationEmitterSupport;
0 24 1 listener Ljavax/management/NotificationListener;
0 24 2 filter Ljavax/management/NotificationFilter;
0 24 3 handback Ljava/lang/Object;
1 24 4 found Z
3 17 6 newList Ljava/util/List<Lsun/management/NotificationEmitterSupport$ListenerInfo;>;
4 17 7 size I
5 17 8 i I
7 15 9 li Lsun/management/NotificationEmitterSupport$ListenerInfo;
Exception table:
from to target type
2 14 19 any
15 18 19 any
19 20 19 any
Exceptions:
throws javax.management.ListenerNotFoundException
MethodParameters:
Name Flags
listener
filter
handback
public void sendNotification(javax.management.Notification);
descriptor: (Ljavax/management/Notification;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.management.NotificationEmitterSupport.listenerLock:Ljava/lang/Object;
dup
astore 3
monitorenter
3: aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
astore 2
start local 2 4: aload 3
monitorexit
5: goto 8
end local 2 StackMap locals: sun.management.NotificationEmitterSupport javax.management.Notification top java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
start local 2 8: StackMap locals: sun.management.NotificationEmitterSupport javax.management.Notification java.util.List
StackMap stack:
aload 2
invokeinterface java.util.List.size:()I
istore 3
start local 3 9: iconst_0
istore 4
start local 4 10: goto 20
11: StackMap locals: int int
StackMap stack:
aload 2
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.management.NotificationEmitterSupport$ListenerInfo
astore 5
start local 5 12: aload 5
getfield sun.management.NotificationEmitterSupport$ListenerInfo.filter:Ljavax/management/NotificationFilter;
ifnull 14
13: aload 5
getfield sun.management.NotificationEmitterSupport$ListenerInfo.filter:Ljavax/management/NotificationFilter;
aload 1
invokeinterface javax.management.NotificationFilter.isNotificationEnabled:(Ljavax/management/Notification;)Z
ifeq 19
14: StackMap locals: sun.management.NotificationEmitterSupport$ListenerInfo
StackMap stack:
aload 5
getfield sun.management.NotificationEmitterSupport$ListenerInfo.listener:Ljavax/management/NotificationListener;
aload 1
aload 5
getfield sun.management.NotificationEmitterSupport$ListenerInfo.handback:Ljava/lang/Object;
invokeinterface javax.management.NotificationListener.handleNotification:(Ljavax/management/Notification;Ljava/lang/Object;)V
15: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
16: astore 6
start local 6 17: aload 6
invokevirtual java.lang.Exception.printStackTrace:()V
18: new java.lang.AssertionError
dup
ldc "Error in invoking listener"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 6 end local 5 19: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
20: iload 4
iload 3
if_icmplt 11
end local 4 21: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/management/NotificationEmitterSupport;
0 22 1 notification Ljavax/management/Notification;
4 6 2 currentList Ljava/util/List<Lsun/management/NotificationEmitterSupport$ListenerInfo;>;
8 22 2 currentList Ljava/util/List<Lsun/management/NotificationEmitterSupport$ListenerInfo;>;
9 22 3 size I
10 21 4 i I
12 19 5 li Lsun/management/NotificationEmitterSupport$ListenerInfo;
17 19 6 e Ljava/lang/Exception;
Exception table:
from to target type
3 5 6 any
6 7 6 any
14 15 16 Class java.lang.Exception
MethodParameters:
Name Flags
notification
public boolean hasListeners();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.management.NotificationEmitterSupport.listenerLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.management.NotificationEmitterSupport.listenerList:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: aload 1
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/management/NotificationEmitterSupport;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public abstract javax.management.MBeanNotificationInfo[] getNotificationInfo();
descriptor: ()[Ljavax/management/MBeanNotificationInfo;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
}
SourceFile: "NotificationEmitterSupport.java"
NestMembers:
sun.management.NotificationEmitterSupport$ListenerInfo
InnerClasses:
private ListenerInfo = sun.management.NotificationEmitterSupport$ListenerInfo of sun.management.NotificationEmitterSupport