public class java.util.Observable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.Observable
super_class: java.lang.Object
{
private boolean changed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.Vector<java.util.Observer> obs;
descriptor: Ljava/util/Vector;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Vector<Ljava/util/Observer;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.util.Observable.changed:Z
2: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield java.util.Observable.obs:Ljava/util/Vector;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Observable;
public synchronized void addObserver(java.util.Observer);
descriptor: (Ljava/util/Observer;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Observable.obs:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.contains:(Ljava/lang/Object;)Z
ifne 4
3: aload 0
getfield java.util.Observable.obs:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/Observable;
0 5 1 o Ljava/util/Observer;
MethodParameters:
Name Flags
o
public synchronized void deleteObserver(java.util.Observer);
descriptor: (Ljava/util/Observer;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.Observable.obs:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.removeElement:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Observable;
0 2 1 o Ljava/util/Observer;
MethodParameters:
Name Flags
o
public void notifyObservers();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual java.util.Observable.notifyObservers:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Observable;
public void notifyObservers(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 3
monitorenter
1: aload 0
getfield java.util.Observable.changed:Z
ifne 4
2: aload 3
monitorexit
3: return
4: StackMap locals: java.util.Observable java.lang.Object top java.util.Observable
StackMap stack:
aload 0
getfield java.util.Observable.obs:Ljava/util/Vector;
invokevirtual java.util.Vector.toArray:()[Ljava/lang/Object;
astore 2
start local 2 5: aload 0
invokevirtual java.util.Observable.clearChanged:()V
6: aload 3
monitorexit
7: goto 10
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
start local 2 10: StackMap locals: java.util.Observable java.lang.Object java.lang.Object[]
StackMap stack:
aload 2
arraylength
iconst_1
isub
istore 3
start local 3 11: goto 14
12: StackMap locals: int
StackMap stack:
aload 2
iload 3
aaload
checkcast java.util.Observer
aload 0
aload 1
invokeinterface java.util.Observer.update:(Ljava/util/Observable;Ljava/lang/Object;)V
13: iinc 3 -1
StackMap locals:
StackMap stack:
14: iload 3
ifge 12
end local 3 15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/Observable;
0 16 1 arg Ljava/lang/Object;
5 8 2 arrLocal [Ljava/lang/Object;
10 16 2 arrLocal [Ljava/lang/Object;
11 15 3 i I
Exception table:
from to target type
1 3 8 any
4 7 8 any
8 9 8 any
MethodParameters:
Name Flags
arg
public synchronized void deleteObservers();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Observable.obs:Ljava/util/Vector;
invokevirtual java.util.Vector.removeAllElements:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Observable;
protected synchronized void setChanged();
descriptor: ()V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield java.util.Observable.changed:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Observable;
protected synchronized void clearChanged();
descriptor: ()V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield java.util.Observable.changed:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Observable;
public synchronized boolean hasChanged();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Observable.changed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Observable;
public synchronized int countObservers();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Observable.obs:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Observable;
}
SourceFile: "Observable.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9")