public class org.jruby.util.collections.WeakHashSet<T> implements java.util.Set<T>, java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.collections.WeakHashSet
super_class: java.lang.Object
{
private static final java.lang.Object PRESENT;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.WeakHashMap<T, java.lang.Object> map;
descriptor: Ljava/util/WeakHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/WeakHashMap<TT;Ljava/lang/Object;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
putstatic org.jruby.util.collections.WeakHashSet.PRESENT:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
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
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.WeakHashMap
dup
iload 1
invokespecial java.util.WeakHashMap.<init>:(I)V
putfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 3 1 size I
MethodParameters:
Name Flags
size
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
aload 1
getstatic org.jruby.util.collections.WeakHashSet.PRESENT:Ljava/lang/Object;
invokevirtual java.util.WeakHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 2 1 o TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
o
public boolean remove(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.WeakHashSet.map:Ljava/util/WeakHashMap;
aload 1
invokevirtual java.util.WeakHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
getstatic org.jruby.util.collections.WeakHashSet.PRESENT:Ljava/lang/Object;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 2 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public java.util.Iterator<T> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
Signature: ()Ljava/util/Iterator<TT;>;
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.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
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.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
public boolean contains(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.WeakHashSet.map:Ljava/util/WeakHashMap;
aload 1
invokevirtual java.util.WeakHashMap.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/WeakHashSet<TT;>;
0 1 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public boolean containsAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)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.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.keySet:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.containsAll:(Ljava/util/Collection;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 1 1 coll Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
coll
public boolean removeAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)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.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.keySet:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.removeAll:(Ljava/util/Collection;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 1 1 coll Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
coll
public boolean retainAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)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.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.keySet:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.retainAll:(Ljava/util/Collection;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 1 1 coll Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
coll
public boolean addAll(java.util.Collection<? extends T>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.jruby.util.collections.WeakHashSet java.util.Collection int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.jruby.util.collections.WeakHashSet.add:(Ljava/lang/Object;)Z
pop
4: iconst_1
istore 2
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 7 1 coll Ljava/util/Collection<+TT;>;
1 7 2 added Z
3 5 3 i TT;
Signature: (Ljava/util/Collection<+TT;>;)Z
MethodParameters:
Name Flags
coll
public java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.toArray:()[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
public <T> T[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
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.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.keySet:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 1 1 arr [Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
MethodParameters:
Name Flags
arr final
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
instanceof java.util.Set
ifeq 7
2: aload 1
checkcast java.util.Set
astore 2
start local 2 3: aload 2
invokeinterface java.util.Set.size:()I
aload 0
invokevirtual org.jruby.util.collections.WeakHashSet.size:()I
if_icmpeq 4
iconst_0
ireturn
4: StackMap locals: java.util.Set
StackMap stack:
aload 0
aload 2
invokevirtual org.jruby.util.collections.WeakHashSet.containsAll:(Ljava/util/Collection;)Z
5: ireturn
6: StackMap locals:
StackMap stack: java.lang.ClassCastException
pop
end local 2 7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
0 8 1 o Ljava/lang/Object;
3 7 2 that Ljava/util/Set;
Exception table:
from to target type
4 5 6 Class java.lang.ClassCastException
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 11
aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.hashCode:()I
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
public org.jruby.util.collections.WeakHashSet<T> clone();
descriptor: ()Lorg/jruby/util/collections/WeakHashSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.jruby.util.collections.WeakHashSet
dup
aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.size:()I
invokespecial org.jruby.util.collections.WeakHashSet.<init>:(I)V
astore 1
start local 1 1: aload 1
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
aload 0
getfield org.jruby.util.collections.WeakHashSet.map:Ljava/util/WeakHashMap;
invokevirtual java.util.WeakHashMap.putAll:(Ljava/util/Map;)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
1 3 1 newSet Lorg/jruby/util/collections/WeakHashSet<TT;>;
Signature: ()Lorg/jruby/util/collections/WeakHashSet<TT;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.collections.WeakHashSet.iterator:()Ljava/util/Iterator;
astore 1
start local 1 1: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
ldc "[]"
areturn
2: StackMap locals: java.util.Iterator
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 3: aload 2
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
4: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 5: aload 2
aload 3
aload 0
if_acmpne 6
ldc "(this Collection)"
goto 7
StackMap locals: org.jruby.util.collections.WeakHashSet java.util.Iterator java.lang.StringBuilder java.lang.Object
StackMap stack: java.lang.StringBuilder
6: aload 3
StackMap locals: org.jruby.util.collections.WeakHashSet java.util.Iterator java.lang.StringBuilder java.lang.Object
StackMap stack: java.lang.StringBuilder java.lang.Object
7: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
8: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
aload 2
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
9: StackMap locals:
StackMap stack:
aload 2
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 3 10: goto 4
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/util/collections/WeakHashSet<TT;>;
1 11 1 it Ljava/util/Iterator<TT;>;
3 11 2 sb Ljava/lang/StringBuilder;
5 10 3 e TT;
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.jruby.util.collections.WeakHashSet.clone:()Lorg/jruby/util/collections/WeakHashSet;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.CloneNotSupportedException
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Set<TT;>;Ljava/lang/Cloneable;
SourceFile: "WeakHashSet.java"