public final class org.apache.lucene.util.WeakIdentityMap<K, V>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.WeakIdentityMap
super_class: java.lang.Object
{
private final java.lang.ref.ReferenceQueue<java.lang.Object> queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
private final java.util.Map<org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference, V> backingStore;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/apache/lucene/util/WeakIdentityMap$IdentityWeakReference;TV;>;
private final boolean reapOnRead;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final java.lang.Object NULL;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/lucene/util/WeakIdentityMap;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.lucene.util.WeakIdentityMap.$assertionsDisabled:Z
3: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic org.apache.lucene.util.WeakIdentityMap.NULL:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
public static <K, V> org.apache.lucene.util.WeakIdentityMap<K, V> newHashMap();
descriptor: ()Lorg/apache/lucene/util/WeakIdentityMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic org.apache.lucene.util.WeakIdentityMap.newHashMap:(Z)Lorg/apache/lucene/util/WeakIdentityMap;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>()Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
public static <K, V> org.apache.lucene.util.WeakIdentityMap<K, V> newHashMap(boolean);
descriptor: (Z)Lorg/apache/lucene/util/WeakIdentityMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.apache.lucene.util.WeakIdentityMap
dup
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
iload 0
invokespecial org.apache.lucene.util.WeakIdentityMap.<init>:(Ljava/util/Map;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 reapOnRead Z
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(Z)Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
MethodParameters:
Name Flags
reapOnRead
public static <K, V> org.apache.lucene.util.WeakIdentityMap<K, V> newConcurrentHashMap();
descriptor: ()Lorg/apache/lucene/util/WeakIdentityMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic org.apache.lucene.util.WeakIdentityMap.newConcurrentHashMap:(Z)Lorg/apache/lucene/util/WeakIdentityMap;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>()Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
public static <K, V> org.apache.lucene.util.WeakIdentityMap<K, V> newConcurrentHashMap(boolean);
descriptor: (Z)Lorg/apache/lucene/util/WeakIdentityMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.apache.lucene.util.WeakIdentityMap
dup
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
iload 0
invokespecial org.apache.lucene.util.WeakIdentityMap.<init>:(Ljava/util/Map;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 reapOnRead Z
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(Z)Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
MethodParameters:
Name Flags
reapOnRead
private void <init>(java.util.Map<org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference, V>, );
descriptor: (Ljava/util/Map;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.apache.lucene.util.WeakIdentityMap.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
aload 1
putfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
3: aload 0
iload 2
putfield org.apache.lucene.util.WeakIdentityMap.reapOnRead:Z
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
0 5 1 backingStore Ljava/util/Map<Lorg/apache/lucene/util/WeakIdentityMap$IdentityWeakReference;TV;>;
0 5 2 reapOnRead Z
Signature: (Ljava/util/Map<Lorg/apache/lucene/util/WeakIdentityMap$IdentityWeakReference;TV;>;Z)V
MethodParameters:
Name Flags
backingStore
reapOnRead
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
public boolean containsKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.reapOnRead:Z
ifeq 1
aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
new org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference
dup
aload 1
aconst_null
invokespecial org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
0 2 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
public V get();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.reapOnRead:Z
ifeq 1
aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
new org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference
dup
aload 1
aconst_null
invokespecial org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
0 2 1 key Ljava/lang/Object;
Signature: (Ljava/lang/Object;)TV;
MethodParameters:
Name Flags
key
public V put(K, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
1: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
new org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference
dup
aload 1
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
0 2 1 key TK;
0 2 2 value TV;
Signature: (TK;TV;)TV;
MethodParameters:
Name Flags
key
value
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.apache.lucene.util.WeakIdentityMap.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/apache/lucene/util/WeakIdentityMap<TK;TV;>;
public V remove();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
1: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
new org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference
dup
aload 1
aconst_null
invokespecial org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
0 2 1 key Ljava/lang/Object;
Signature: (Ljava/lang/Object;)TV;
MethodParameters:
Name Flags
key
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.reapOnRead:Z
ifeq 3
aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
public java.util.Iterator<K> keyIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
1: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 1
start local 1 2: new org.apache.lucene.util.WeakIdentityMap$1
dup
aload 0
aload 1
invokespecial org.apache.lucene.util.WeakIdentityMap$1.<init>:(Lorg/apache/lucene/util/WeakIdentityMap;Ljava/util/Iterator;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
2 3 1 iterator Ljava/util/Iterator<Lorg/apache/lucene/util/WeakIdentityMap$IdentityWeakReference;>;
Signature: ()Ljava/util/Iterator<TK;>;
public java.util.Iterator<V> valueIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.WeakIdentityMap.reapOnRead:Z
ifeq 1
aload 0
invokevirtual org.apache.lucene.util.WeakIdentityMap.reap:()V
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/WeakIdentityMap<TK;TV;>;
Signature: ()Ljava/util/Iterator<TV;>;
public void reap();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 2
start local 1 1: StackMap locals: java.lang.ref.Reference
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.backingStore:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 1 2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.WeakIdentityMap.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
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/apache/lucene/util/WeakIdentityMap<TK;TV;>;
1 2 1 zombie Ljava/lang/ref/Reference<*>;
3 5 1 zombie Ljava/lang/ref/Reference<*>;
}
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "WeakIdentityMap.java"
NestMembers:
org.apache.lucene.util.WeakIdentityMap$1 org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference
InnerClasses:
org.apache.lucene.util.WeakIdentityMap$1
private final IdentityWeakReference = org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference of org.apache.lucene.util.WeakIdentityMap