public abstract class org.jruby.util.GenericMap implements java.util.Map
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.util.GenericMap
super_class: java.lang.Object
{
protected int size;
descriptor: I
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
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.GenericMap.size:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
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.GenericMap.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/GenericMap;
protected int keyHash(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual java.lang.Object.hashCode:()I
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/GenericMap;
0 3 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
protected boolean keyEquals(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
aload 2
ifnonnull 1
iconst_1
goto 3
StackMap locals:
StackMap stack:
1: iconst_0
goto 3
StackMap locals:
StackMap stack:
2: aload 1
aload 2
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
StackMap locals:
StackMap stack: int
3: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/GenericMap;
0 4 1 containedKey Ljava/lang/Object;
0 4 2 givenKey Ljava/lang/Object;
MethodParameters:
Name Flags
containedKey
givenKey
protected int valueHash(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual java.lang.Object.hashCode:()I
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/GenericMap;
0 3 1 value Ljava/lang/Object;
MethodParameters:
Name Flags
value
protected boolean valueEquals(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
aload 2
ifnonnull 1
iconst_1
goto 3
StackMap locals:
StackMap stack:
1: iconst_0
goto 3
StackMap locals:
StackMap stack:
2: aload 1
aload 2
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
StackMap locals:
StackMap stack: int
3: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/GenericMap;
0 4 1 value1 Ljava/lang/Object;
0 4 2 value2 Ljava/lang/Object;
MethodParameters:
Name Flags
value1
value2
public void putAll(java.util.Map);
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
aload 0
if_acmpne 1
return
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
start local 2 2: goto 5
3: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: aload 0
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual org.jruby.util.GenericMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 2 6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/util/GenericMap;
0 7 1 other Ljava/util/Map;
2 6 2 it Ljava/util/Iterator;
4 5 3 entry Ljava/util/Map$Entry;
MethodParameters:
Name Flags
other
protected abstract java.util.Iterator entryIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected java.util.Iterator keyIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.GenericMap$KeyIterator
dup
aload 0
invokespecial org.jruby.util.GenericMap$KeyIterator.<init>:(Lorg/jruby/util/GenericMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
protected java.util.Iterator valueIterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.GenericMap$ValueIterator
dup
aload 0
invokespecial org.jruby.util.GenericMap$ValueIterator.<init>:(Lorg/jruby/util/GenericMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
private static java.lang.Object[] toArray(java.lang.Object[], int, java.util.Iterator);
descriptor: ([Ljava/lang/Object;ILjava/util/Iterator;)[Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 3
aload 0
arraylength
iload 1
if_icmplt 3
1: aload 0
astore 3
start local 3 2: goto 7
end local 3 StackMap locals:
StackMap stack:
3: aload 0
ifnonnull 6
4: iload 1
anewarray java.lang.Object
astore 3
start local 3 5: goto 7
end local 3 6: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
iload 1
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.lang.Object[]
astore 3
start local 3 7: StackMap locals: java.lang.Object[]
StackMap stack:
iconst_0
istore 4
start local 4 8: goto 11
9: StackMap locals: int
StackMap stack:
aload 3
iload 4
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
aastore
10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 1
if_icmplt 9
end local 4 12: aload 3
arraylength
iload 1
if_icmple 13
aload 3
iload 1
aconst_null
aastore
13: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 arr [Ljava/lang/Object;
0 14 1 size I
0 14 2 it Ljava/util/Iterator;
2 3 3 out [Ljava/lang/Object;
5 6 3 out [Ljava/lang/Object;
7 14 3 out [Ljava/lang/Object;
8 12 4 i I
MethodParameters:
Name Flags
arr
size
it
public java.util.Collection 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.GenericMap$1
dup
aload 0
invokespecial org.jruby.util.GenericMap$1.<init>:(Lorg/jruby/util/GenericMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
public java.util.Set keySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.GenericMap$2
dup
aload 0
invokespecial org.jruby.util.GenericMap$2.<init>:(Lorg/jruby/util/GenericMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual org.jruby.util.GenericMap.entryIterator:()Ljava/util/Iterator;
astore 2
start local 2 2: goto 4
3: StackMap locals: int java.util.Iterator
StackMap stack:
iload 1
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual java.lang.Object.hashCode:()I
iadd
istore 1
4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 2 5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/util/GenericMap;
1 6 1 code I
2 5 2 it Ljava/util/Iterator;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.util.Map
ifne 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 1
checkcast java.util.Map
astore 2
start local 2 2: aload 2
invokeinterface java.util.Map.size:()I
aload 0
invokevirtual org.jruby.util.GenericMap.size:()I
if_icmpeq 3
iconst_0
ireturn
3: StackMap locals: java.util.Map
StackMap stack:
aload 0
invokevirtual org.jruby.util.GenericMap.entryIterator:()Ljava/util/Iterator;
astore 3
start local 3 4: goto 11
5: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jruby.util.GenericMap$Entry
astore 4
start local 4 6: aload 4
invokevirtual org.jruby.util.GenericMap$Entry.getKey:()Ljava/lang/Object;
astore 5
start local 5 7: aload 4
invokevirtual org.jruby.util.GenericMap$Entry.getValue:()Ljava/lang/Object;
astore 6
start local 6 8: aload 2
aload 5
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 11
9: aload 2
aload 5
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 7
start local 7 10: aload 0
aload 6
aload 7
invokevirtual org.jruby.util.GenericMap.valueEquals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 11
iconst_0
ireturn
end local 7 end local 6 end local 5 end local 4 11: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 12: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/util/GenericMap;
0 13 1 other Ljava/lang/Object;
2 13 2 map Ljava/util/Map;
4 12 3 it Ljava/util/Iterator;
6 11 4 ent Lorg/jruby/util/GenericMap$Entry;
7 11 5 key Ljava/lang/Object;
8 11 6 val Ljava/lang/Object;
10 11 7 otherVal Ljava/lang/Object;
MethodParameters:
Name Flags
other
public java.util.Set 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.GenericMap$3
dup
aload 0
invokespecial org.jruby.util.GenericMap$3.<init>:(Lorg/jruby/util/GenericMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/GenericMap;
public boolean containsValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.util.GenericMap.valueIterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 3
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 0
aload 1
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual org.jruby.util.GenericMap.valueEquals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
end local 2 4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/GenericMap;
0 5 1 value Ljava/lang/Object;
1 4 2 it Ljava/util/Iterator;
MethodParameters:
Name Flags
value
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
aload 1
invokevirtual org.jruby.util.GenericMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 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/GenericMap;
0 2 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
}
SourceFile: "GenericMap.java"
NestMembers:
org.jruby.util.GenericMap$1 org.jruby.util.GenericMap$2 org.jruby.util.GenericMap$3 org.jruby.util.GenericMap$Entry org.jruby.util.GenericMap$KeyIterator org.jruby.util.GenericMap$KeyOrValueIterator org.jruby.util.GenericMap$ValueIterator
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
org.jruby.util.GenericMap$1
org.jruby.util.GenericMap$2
org.jruby.util.GenericMap$3
abstract Entry = org.jruby.util.GenericMap$Entry of org.jruby.util.GenericMap
KeyIterator = org.jruby.util.GenericMap$KeyIterator of org.jruby.util.GenericMap
abstract KeyOrValueIterator = org.jruby.util.GenericMap$KeyOrValueIterator of org.jruby.util.GenericMap
ValueIterator = org.jruby.util.GenericMap$ValueIterator of org.jruby.util.GenericMap