public class org.apache.commons.lang3.text.translate.LookupTranslator extends org.apache.commons.lang3.text.translate.CharSequenceTranslator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.lang3.text.translate.LookupTranslator
super_class: org.apache.commons.lang3.text.translate.CharSequenceTranslator
{
private final java.util.HashMap<java.lang.String, java.lang.String> lookupMap;
descriptor: Ljava/util/HashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
private final java.util.HashSet<java.lang.Character> prefixSet;
descriptor: Ljava/util/HashSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashSet<Ljava/lang/Character;>;
private final int shortest;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int longest;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.CharSequence[][]);
descriptor: ([[Ljava/lang/CharSequence;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.apache.commons.lang3.text.translate.CharSequenceTranslator.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.commons.lang3.text.translate.LookupTranslator.lookupMap:Ljava/util/HashMap;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.apache.commons.lang3.text.translate.LookupTranslator.prefixSet:Ljava/util/HashSet;
3: ldc 2147483647
istore 2
start local 2 4: iconst_0
istore 3
start local 3 5: aload 1
ifnull 17
6: aload 1
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 16
StackMap locals: org.apache.commons.lang3.text.translate.LookupTranslator java.lang.CharSequence[][] int int top int int java.lang.CharSequence[][]
StackMap stack:
7: aload 7
iload 5
aaload
astore 4
start local 4 8: aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.lookupMap:Ljava/util/HashMap;
aload 4
iconst_0
aaload
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
aload 4
iconst_1
aaload
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.prefixSet:Ljava/util/HashSet;
aload 4
iconst_0
aaload
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
10: aload 4
iconst_0
aaload
invokeinterface java.lang.CharSequence.length:()I
istore 8
start local 8 11: iload 8
iload 2
if_icmpge 13
12: iload 8
istore 2
13: StackMap locals: org.apache.commons.lang3.text.translate.LookupTranslator java.lang.CharSequence[][] int int java.lang.CharSequence[] int int java.lang.CharSequence[][] int
StackMap stack:
iload 8
iload 3
if_icmple 15
14: iload 8
istore 3
end local 8 end local 4 15: StackMap locals: org.apache.commons.lang3.text.translate.LookupTranslator java.lang.CharSequence[][] int int top int int java.lang.CharSequence[][]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
16: iload 5
iload 6
if_icmplt 7
17: StackMap locals: org.apache.commons.lang3.text.translate.LookupTranslator java.lang.CharSequence[][] int int
StackMap stack:
aload 0
iload 2
putfield org.apache.commons.lang3.text.translate.LookupTranslator.shortest:I
18: aload 0
iload 3
putfield org.apache.commons.lang3.text.translate.LookupTranslator.longest:I
19: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/apache/commons/lang3/text/translate/LookupTranslator;
0 20 1 lookup [[Ljava/lang/CharSequence;
4 20 2 _shortest I
5 20 3 _longest I
8 15 4 seq [Ljava/lang/CharSequence;
11 15 8 sz I
MethodParameters:
Name Flags
lookup final
public int translate(java.lang.CharSequence, int, java.io.Writer);
descriptor: (Ljava/lang/CharSequence;ILjava/io/Writer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.prefixSet:Ljava/util/HashSet;
aload 1
iload 2
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual java.util.HashSet.contains:(Ljava/lang/Object;)Z
ifeq 13
1: aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.longest:I
istore 4
start local 4 2: iload 2
aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.longest:I
iadd
aload 1
invokeinterface java.lang.CharSequence.length:()I
if_icmple 4
3: aload 1
invokeinterface java.lang.CharSequence.length:()I
iload 2
isub
istore 4
4: StackMap locals: int
StackMap stack:
iload 4
istore 5
start local 5 5: goto 12
6: StackMap locals: int
StackMap stack:
aload 1
iload 2
iload 2
iload 5
iadd
invokeinterface java.lang.CharSequence.subSequence:(II)Ljava/lang/CharSequence;
astore 6
start local 6 7: aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.lookupMap:Ljava/util/HashMap;
aload 6
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 8: aload 7
ifnull 11
9: aload 3
aload 7
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
10: iload 5
ireturn
end local 7 end local 6 11: StackMap locals:
StackMap stack:
iinc 5 -1
StackMap locals:
StackMap stack:
12: iload 5
aload 0
getfield org.apache.commons.lang3.text.translate.LookupTranslator.shortest:I
if_icmpge 6
end local 5 end local 4 13: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/commons/lang3/text/translate/LookupTranslator;
0 14 1 input Ljava/lang/CharSequence;
0 14 2 index I
0 14 3 out Ljava/io/Writer;
2 13 4 max I
5 13 5 i I
7 11 6 subSeq Ljava/lang/CharSequence;
8 11 7 result Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input final
index final
out final
}
SourceFile: "LookupTranslator.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()