public class org.jruby.util.collections.WeakValuedMap<Key, Value> implements java.util.Map<Key, Value>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.collections.WeakValuedMap
super_class: java.lang.Object
{
private final java.util.Map<Key, org.jruby.util.collections.WeakValuedMap$KeyedReference<Key, Value>> map;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<TKey;Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;>;
private final java.lang.ref.ReferenceQueue<Value> deadRefs;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<TValue;>;
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
aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.newMap:()Ljava/util/Map;
putfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
2: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.jruby.util.collections.WeakValuedMap.deadRefs:Ljava/lang/ref/ReferenceQueue;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
public Value put(Key, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.cleanReferences:()V
1: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
aload 1
new org.jruby.util.collections.WeakValuedMap$KeyedReference
dup
aload 2
aload 1
aload 0
getfield org.jruby.util.collections.WeakValuedMap.deadRefs:Ljava/lang/ref/ReferenceQueue;
invokespecial org.jruby.util.collections.WeakValuedMap$KeyedReference.<init>:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.util.collections.WeakValuedMap$KeyedReference
astore 3
start local 3 2: aload 3
ifnonnull 3
aconst_null
goto 4
StackMap locals: org.jruby.util.collections.WeakValuedMap$KeyedReference
StackMap stack:
3: aload 3
invokevirtual org.jruby.util.collections.WeakValuedMap$KeyedReference.get:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
4: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
0 5 1 key TKey;
0 5 2 value TValue;
2 5 3 prev Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;
Signature: (TKey;TValue;)TValue;
MethodParameters:
Name Flags
key
value
public Value get();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.cleanReferences:()V
1: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.util.collections.WeakValuedMap$KeyedReference
astore 2
start local 2 2: aload 2
ifnonnull 3
aconst_null
areturn
3: StackMap locals: org.jruby.util.collections.WeakValuedMap$KeyedReference
StackMap stack:
aload 2
invokevirtual org.jruby.util.collections.WeakValuedMap$KeyedReference.get:()Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
0 4 1 key Ljava/lang/Object;
2 4 2 reference Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;
Signature: (Ljava/lang/Object;)TValue;
MethodParameters:
Name Flags
key
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.cleanReferences:()V
1: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.cleanReferences:()V
1: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.size:()I
ifne 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 Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
public boolean containsKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
0 1 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key final
public boolean containsValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.cleanReferences:()V
1: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.jruby.util.collections.WeakValuedMap java.lang.Object top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jruby.util.collections.WeakValuedMap$KeyedReference
astore 2
start local 2 3: aload 1
ifnonnull 5
4: aload 2
invokevirtual org.jruby.util.collections.WeakValuedMap$KeyedReference.get:()Ljava/lang/Object;
ifnonnull 6
iconst_1
ireturn
5: StackMap locals: org.jruby.util.collections.WeakValuedMap java.lang.Object org.jruby.util.collections.WeakValuedMap$KeyedReference java.util.Iterator
StackMap stack:
aload 1
aload 2
invokevirtual org.jruby.util.collections.WeakValuedMap$KeyedReference.get:()Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
end local 2 6: StackMap locals: org.jruby.util.collections.WeakValuedMap java.lang.Object top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
0 8 1 value Ljava/lang/Object;
3 6 2 ref Lorg/jruby/util/collections/WeakValuedMap$KeyedReference;
MethodParameters:
Name Flags
value final
public Value remove();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.util.collections.WeakValuedMap.cleanReferences:()V
1: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.util.collections.WeakValuedMap$KeyedReference
astore 2
start local 2 2: aload 2
ifnonnull 3
aconst_null
goto 4
StackMap locals: org.jruby.util.collections.WeakValuedMap$KeyedReference
StackMap stack:
3: aload 2
invokevirtual org.jruby.util.collections.WeakValuedMap$KeyedReference.get:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
4: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
0 5 1 key Ljava/lang/Object;
2 5 2 prev Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;
Signature: (Ljava/lang/Object;)TValue;
MethodParameters:
Name Flags
key final
public void putAll(java.util.Map<? extends Key, ? extends Value>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.jruby.util.collections.WeakValuedMap java.util.Map top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 2: aload 0
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual org.jruby.util.collections.WeakValuedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 StackMap locals:
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
0 5 1 m Ljava/util/Map<+TKey;+TValue;>;
2 3 2 e Ljava/util/Map$Entry<+TKey;+TValue;>;
Signature: (Ljava/util/Map<+TKey;+TValue;>;)V
MethodParameters:
Name Flags
m final
public java.util.Set<Key> keySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
Signature: ()Ljava/util/Set<TKey;>;
public java.util.Collection<Value> values();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.collections.WeakValuedMap$1
dup
aload 0
invokespecial org.jruby.util.collections.WeakValuedMap$1.<init>:(Lorg/jruby/util/collections/WeakValuedMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
Signature: ()Ljava/util/Collection<TValue;>;
public java.util.Set<java.util.Map$Entry<Key, Value>> entrySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.collections.WeakValuedMap$EntrySet
dup
aload 0
invokespecial org.jruby.util.collections.WeakValuedMap$EntrySet.<init>:(Lorg/jruby/util/collections/WeakValuedMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
Signature: ()Ljava/util/Set<Ljava/util/Map$Entry<TKey;TValue;>;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
protected java.util.Map<Key, org.jruby.util.collections.WeakValuedMap$KeyedReference<Key, Value>> newMap();
descriptor: ()Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
Signature: ()Ljava/util/Map<TKey;Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;>;
private void cleanReferences();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 2
start local 1 1: StackMap locals: org.jruby.util.collections.WeakValuedMap$KeyedReference
StackMap stack:
aload 0
getfield org.jruby.util.collections.WeakValuedMap.map:Ljava/util/Map;
aload 1
getfield org.jruby.util.collections.WeakValuedMap$KeyedReference.key:Ljava/lang/Object;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 1 2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.collections.WeakValuedMap.deadRefs:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast org.jruby.util.collections.WeakValuedMap$KeyedReference
dup
astore 1
start local 1 3: ifnonnull 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/collections/WeakValuedMap<TKey;TValue;>;
1 2 1 ref Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;
3 5 1 ref Lorg/jruby/util/collections/WeakValuedMap$KeyedReference<TKey;TValue;>;
}
Signature: <Key:Ljava/lang/Object;Value:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Map<TKey;TValue;>;Ljava/io/Serializable;
SourceFile: "WeakValuedMap.java"
NestMembers:
org.jruby.util.collections.WeakValuedMap$1 org.jruby.util.collections.WeakValuedMap$1$1 org.jruby.util.collections.WeakValuedMap$EntrySet org.jruby.util.collections.WeakValuedMap$EntrySet$1 org.jruby.util.collections.WeakValuedMap$KeyedReference
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
org.jruby.util.collections.WeakValuedMap$1
private EntrySet = org.jruby.util.collections.WeakValuedMap$EntrySet of org.jruby.util.collections.WeakValuedMap
protected KeyedReference = org.jruby.util.collections.WeakValuedMap$KeyedReference of org.jruby.util.collections.WeakValuedMap