public class org.apache.xml.dtm.ref.DTMStringPool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.xml.dtm.ref.DTMStringPool
super_class: java.lang.Object
{
java.util.Vector m_intToString;
descriptor: Ljava/util/Vector;
flags: (0x0000)
static final int HASHPRIME;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 101
int[] m_hashStart;
descriptor: [I
flags: (0x0000)
org.apache.xml.utils.IntVector m_hashChain;
descriptor: Lorg/apache/xml/utils/IntVector;
flags: (0x0000)
public static final int NULL;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
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
bipush 101
newarray 10
putfield org.apache.xml.dtm.ref.DTMStringPool.m_hashStart:[I
2: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield org.apache.xml.dtm.ref.DTMStringPool.m_intToString:Ljava/util/Vector;
3: aload 0
new org.apache.xml.utils.IntVector
dup
iload 1
invokespecial org.apache.xml.utils.IntVector.<init>:(I)V
putfield org.apache.xml.dtm.ref.DTMStringPool.m_hashChain:Lorg/apache/xml/utils/IntVector;
4: aload 0
invokevirtual org.apache.xml.dtm.ref.DTMStringPool.removeAllElements:()V
5: aload 0
ldc ""
invokevirtual org.apache.xml.dtm.ref.DTMStringPool.stringToIndex:(Ljava/lang/String;)I
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/xml/dtm/ref/DTMStringPool;
0 7 1 chainSize I
MethodParameters:
Name Flags
chainSize
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 512
invokespecial org.apache.xml.dtm.ref.DTMStringPool.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/xml/dtm/ref/DTMStringPool;
public void removeAllElements();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_intToString:Ljava/util/Vector;
invokevirtual java.util.Vector.removeAllElements:()V
1: iconst_0
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashStart:[I
iload 1
iconst_m1
iastore
4: iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
bipush 101
if_icmplt 3
end local 1 6: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashChain:Lorg/apache/xml/utils/IntVector;
invokevirtual org.apache.xml.utils.IntVector.removeAllElements:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/xml/dtm/ref/DTMStringPool;
2 6 1 i I
public java.lang.String indexToString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_m1
if_icmpne 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_intToString:Ljava/util/Vector;
iload 1
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/xml/dtm/ref/DTMStringPool;
0 2 1 i I
Exceptions:
throws java.lang.ArrayIndexOutOfBoundsException
MethodParameters:
Name Flags
i
public int stringToIndex(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
iconst_m1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.hashCode:()I
bipush 101
irem
istore 2
start local 2 2: iload 2
ifge 3
iload 2
ineg
istore 2
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashStart:[I
iload 2
iaload
istore 3
start local 3 4: iload 3
istore 4
start local 4 5: goto 10
6: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_intToString:Ljava/util/Vector;
iload 4
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 8
7: iload 4
ireturn
8: StackMap locals:
StackMap stack:
iload 4
istore 3
9: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashChain:Lorg/apache/xml/utils/IntVector;
iload 4
invokevirtual org.apache.xml.utils.IntVector.elementAt:(I)I
istore 4
10: StackMap locals:
StackMap stack:
iload 4
iconst_m1
if_icmpne 6
11: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_intToString:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
istore 5
start local 5 12: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_intToString:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
13: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashChain:Lorg/apache/xml/utils/IntVector;
iconst_m1
invokevirtual org.apache.xml.utils.IntVector.addElement:(I)V
14: iload 3
iconst_m1
if_icmpne 16
15: aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashStart:[I
iload 2
iload 5
iastore
goto 17
16: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.xml.dtm.ref.DTMStringPool.m_hashChain:Lorg/apache/xml/utils/IntVector;
iload 5
iload 3
invokevirtual org.apache.xml.utils.IntVector.setElementAt:(II)V
17: StackMap locals:
StackMap stack:
iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/xml/dtm/ref/DTMStringPool;
0 18 1 s Ljava/lang/String;
2 18 2 hashslot I
4 18 3 hashlast I
5 18 4 hashcandidate I
12 18 5 newIndex I
MethodParameters:
Name Flags
s
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: bipush 40
anewarray java.lang.String
dup
iconst_0
1: ldc "Zero"
aastore
dup
iconst_1
ldc "One"
aastore
dup
iconst_2
ldc "Two"
aastore
dup
iconst_3
ldc "Three"
aastore
dup
iconst_4
ldc "Four"
aastore
dup
iconst_5
ldc "Five"
aastore
dup
bipush 6
2: ldc "Six"
aastore
dup
bipush 7
ldc "Seven"
aastore
dup
bipush 8
ldc "Eight"
aastore
dup
bipush 9
ldc "Nine"
aastore
dup
bipush 10
ldc "Ten"
aastore
dup
bipush 11
3: ldc "Eleven"
aastore
dup
bipush 12
ldc "Twelve"
aastore
dup
bipush 13
ldc "Thirteen"
aastore
dup
bipush 14
ldc "Fourteen"
aastore
dup
bipush 15
ldc "Fifteen"
aastore
dup
bipush 16
4: ldc "Sixteen"
aastore
dup
bipush 17
ldc "Seventeen"
aastore
dup
bipush 18
ldc "Eighteen"
aastore
dup
bipush 19
ldc "Nineteen"
aastore
dup
bipush 20
ldc "Twenty"
aastore
dup
bipush 21
5: ldc "Twenty-One"
aastore
dup
bipush 22
ldc "Twenty-Two"
aastore
dup
bipush 23
ldc "Twenty-Three"
aastore
dup
bipush 24
ldc "Twenty-Four"
aastore
dup
bipush 25
6: ldc "Twenty-Five"
aastore
dup
bipush 26
ldc "Twenty-Six"
aastore
dup
bipush 27
ldc "Twenty-Seven"
aastore
dup
bipush 28
ldc "Twenty-Eight"
aastore
dup
bipush 29
7: ldc "Twenty-Nine"
aastore
dup
bipush 30
ldc "Thirty"
aastore
dup
bipush 31
ldc "Thirty-One"
aastore
dup
bipush 32
ldc "Thirty-Two"
aastore
dup
bipush 33
8: ldc "Thirty-Three"
aastore
dup
bipush 34
ldc "Thirty-Four"
aastore
dup
bipush 35
ldc "Thirty-Five"
aastore
dup
bipush 36
ldc "Thirty-Six"
aastore
dup
bipush 37
9: ldc "Thirty-Seven"
aastore
dup
bipush 38
ldc "Thirty-Eight"
aastore
dup
bipush 39
ldc "Thirty-Nine"
aastore
10: astore 1
start local 1 11: new org.apache.xml.dtm.ref.DTMStringPool
dup
invokespecial org.apache.xml.dtm.ref.DTMStringPool.<init>:()V
astore 2
start local 2 12: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "If no complaints are printed below, we passed initial test."
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: iconst_0
istore 3
start local 3 14: goto 43
15: StackMap locals: java.lang.String[] org.apache.xml.dtm.ref.DTMStringPool int
StackMap stack:
iconst_0
istore 4
start local 4 16: goto 23
17: StackMap locals: int
StackMap stack:
aload 2
aload 1
iload 4
aaload
invokevirtual org.apache.xml.dtm.ref.DTMStringPool.stringToIndex:(Ljava/lang/String;)I
istore 5
start local 5 18: iload 5
iload 4
if_icmpeq 22
19: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "\tMismatch populating pool: assigned "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
20: iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " for create "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 5 22: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
23: iload 4
aload 1
arraylength
if_icmplt 17
24: iconst_0
istore 4
goto 31
25: StackMap locals:
StackMap stack:
aload 2
aload 1
iload 4
aaload
invokevirtual org.apache.xml.dtm.ref.DTMStringPool.stringToIndex:(Ljava/lang/String;)I
istore 5
start local 5 26: iload 5
iload 4
if_icmpeq 30
27: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "\tMismatch in stringToIndex: returned "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " for lookup "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
29: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 5 30: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
31: iload 4
aload 1
arraylength
if_icmplt 25
32: iconst_0
istore 4
goto 39
33: StackMap locals:
StackMap stack:
aload 2
iload 4
invokevirtual org.apache.xml.dtm.ref.DTMStringPool.indexToString:(I)Ljava/lang/String;
astore 5
start local 5 34: aload 1
iload 4
aaload
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 38
35: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "\tMismatch in indexToString: returned"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
36: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " for lookup "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
37: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 5 38: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
39: iload 4
aload 1
arraylength
if_icmplt 33
40: aload 2
invokevirtual org.apache.xml.dtm.ref.DTMStringPool.removeAllElements:()V
41: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "\nPass "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " complete\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 4 42: iinc 3 1
StackMap locals:
StackMap stack:
43: iload 3
iconst_1
if_icmple 15
end local 3 44: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 args [Ljava/lang/String;
11 45 1 word [Ljava/lang/String;
12 45 2 pool Lorg/apache/xml/dtm/ref/DTMStringPool;
14 44 3 pass I
16 42 4 i I
18 22 5 j I
26 30 5 j I
34 38 5 w Ljava/lang/String;
MethodParameters:
Name Flags
args
}
SourceFile: "DTMStringPool.java"