public final class com.ctc.wstx.util.StringUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.ctc.wstx.util.StringUtil
super_class: java.lang.Object
{
static final char CHAR_SPACE;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final char INT_SPACE;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 32
static java.lang.String sLF;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
private static final int EOS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 65536
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic com.ctc.wstx.util.StringUtil.sLF:Ljava/lang/String;
1: return
LocalVariableTable:
Start End Slot Name Signature
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 Lcom/ctc/wstx/util/StringUtil;
public static java.lang.String getLF();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic com.ctc.wstx.util.StringUtil.sLF:Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnonnull 9
2: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
3: aload 0
ifnonnull 4
ldc "\n"
goto 5
StackMap locals: java.lang.String
StackMap stack:
4: aload 0
StackMap locals:
StackMap stack: java.lang.String
5: putstatic com.ctc.wstx.util.StringUtil.sLF:Ljava/lang/String;
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: pop
8: ldc "\n"
dup
astore 0
putstatic com.ctc.wstx.util.StringUtil.sLF:Ljava/lang/String;
9: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 lf Ljava/lang/String;
Exception table:
from to target type
2 6 7 Class java.lang.Throwable
public static void appendLF(java.lang.StringBuilder);
descriptor: (Ljava/lang/StringBuilder;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.ctc.wstx.util.StringUtil.getLF:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
sb
public static java.lang.String concatEntries(java.util.Collection<?>, java.lang.String, java.lang.String);
descriptor: (Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: aload 1
astore 2
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Collection.size:()I
istore 3
start local 3 3: new java.lang.StringBuilder
dup
bipush 16
iload 3
iconst_3
ishl
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 4
start local 4 4: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 15
7: StackMap locals: java.util.Collection java.lang.String java.lang.String int java.lang.StringBuilder java.util.Iterator int
StackMap stack:
iload 6
ifne 9
8: goto 13
StackMap locals:
StackMap stack:
9: iload 6
iload 3
iconst_1
isub
if_icmpne 12
10: aload 4
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: goto 13
12: StackMap locals:
StackMap stack:
aload 4
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: StackMap locals:
StackMap stack:
iinc 6 1
14: aload 4
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
15: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
16: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 6 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 17 0 coll Ljava/util/Collection<*>;
0 17 1 sep Ljava/lang/String;
0 17 2 lastSep Ljava/lang/String;
3 17 3 len I
4 17 4 sb Ljava/lang/StringBuilder;
5 17 5 it Ljava/util/Iterator<*>;
6 17 6 i I
Signature: (Ljava/util/Collection<*>;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
MethodParameters:
Name Flags
coll
sep
lastSep
public static java.lang.String normalizeSpaces(char[], int, int);
descriptor: ([CII)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iinc 2 -1
1: iload 1
istore 3
start local 3 2: iload 2
istore 4
start local 4 3: goto 5
4: StackMap locals: int int
StackMap stack:
iinc 3 1
5: StackMap locals:
StackMap stack:
iload 3
iload 4
if_icmpgt 6
aload 0
iload 3
caload
bipush 32
if_icmpeq 4
6: StackMap locals:
StackMap stack:
iload 3
iload 4
if_icmple 9
7: ldc ""
areturn
8: StackMap locals:
StackMap stack:
iinc 4 -1
9: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmple 10
aload 0
iload 4
caload
bipush 32
if_icmpeq 8
10: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
istore 5
start local 5 11: goto 18
12: StackMap locals: int
StackMap stack:
aload 0
iload 5
caload
bipush 32
if_icmpne 17
13: aload 0
iload 5
iconst_1
iadd
caload
bipush 32
if_icmpne 15
14: goto 19
15: StackMap locals:
StackMap stack:
iinc 5 2
16: goto 18
17: StackMap locals:
StackMap stack:
iinc 5 1
18: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmplt 12
19: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmplt 23
20: iload 3
iload 1
if_icmpne 22
iload 4
iload 2
if_icmpne 22
21: aconst_null
areturn
22: StackMap locals:
StackMap stack:
new java.lang.String
dup
aload 0
iload 3
iload 4
iload 3
isub
iconst_1
iadd
invokespecial java.lang.String.<init>:([CII)V
areturn
23: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
iload 4
iload 3
isub
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 6
start local 6 24: aload 6
aload 0
iload 3
iload 5
iload 3
isub
invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
pop
25: goto 34
26: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 0
iload 5
iinc 5 1
caload
istore 7
start local 7 27: iload 7
bipush 32
if_icmpne 33
28: aload 6
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
29: StackMap locals: int
StackMap stack:
aload 0
iload 5
iinc 5 1
caload
istore 7
30: iload 7
bipush 32
if_icmpeq 29
31: aload 6
iload 7
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
32: goto 34
33: StackMap locals:
StackMap stack:
aload 6
iload 7
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 7 34: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmple 26
35: aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 6 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 36 0 buf [C
0 36 1 origStart I
0 36 2 origEnd I
2 36 3 start I
3 36 4 end I
11 36 5 i I
24 36 6 sb Ljava/lang/StringBuilder;
27 34 7 c C
MethodParameters:
Name Flags
buf
origStart
origEnd
public static boolean isAllWhitespace(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
bipush 32
if_icmple 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
iload 2
if_icmplt 3
end local 2 end local 1 7: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 str Ljava/lang/String;
1 7 1 i I
2 7 2 len I
MethodParameters:
Name Flags
str
public static boolean isAllWhitespace(char[], int, int);
descriptor: ([CII)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
iadd
istore 2
1: goto 5
2: StackMap locals:
StackMap stack:
aload 0
iload 1
caload
bipush 32
if_icmple 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
iload 2
if_icmplt 2
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 ch [C
0 7 1 start I
0 7 2 len I
MethodParameters:
Name Flags
ch
start
len
public static boolean equalEncodings(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: aload 1
invokevirtual java.lang.String.length:()I
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 37
5: StackMap locals: java.lang.String java.lang.String int int int int
StackMap stack:
iload 4
iload 2
if_icmplt 6
ldc 65536
goto 7
StackMap locals:
StackMap stack:
6: aload 0
iload 4
iinc 4 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
7: istore 6
start local 6 8: iload 5
iload 3
if_icmplt 9
ldc 65536
goto 10
StackMap locals: int
StackMap stack:
9: aload 1
iload 5
iinc 5 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
10: istore 7
start local 7 11: iload 6
iload 7
if_icmpne 16
12: goto 37
13: StackMap locals: int
StackMap stack:
iload 4
iload 2
if_icmplt 14
ldc 65536
goto 15
StackMap locals:
StackMap stack:
14: aload 0
iload 4
iinc 4 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
15: istore 6
16: StackMap locals:
StackMap stack:
iload 6
bipush 32
if_icmple 13
iload 6
bipush 95
if_icmpeq 13
iload 6
bipush 45
if_icmpeq 13
17: goto 21
18: StackMap locals:
StackMap stack:
iload 5
iload 3
if_icmplt 19
ldc 65536
goto 20
StackMap locals:
StackMap stack:
19: aload 1
iload 5
iinc 5 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
20: istore 7
21: StackMap locals:
StackMap stack:
iload 7
bipush 32
if_icmple 18
iload 7
bipush 95
if_icmpeq 18
iload 7
bipush 45
if_icmpeq 18
22: iload 6
iload 7
if_icmpeq 37
23: iload 6
ldc 65536
if_icmpeq 24
iload 7
ldc 65536
if_icmpne 25
24: StackMap locals:
StackMap stack:
iconst_0
ireturn
25: StackMap locals:
StackMap stack:
iload 6
bipush 127
if_icmpge 29
26: iload 6
bipush 90
if_icmpgt 30
iload 6
bipush 65
if_icmplt 30
27: iinc 6 32
28: goto 30
29: StackMap locals:
StackMap stack:
iload 6
i2c
invokestatic java.lang.Character.toLowerCase:(C)C
istore 6
30: StackMap locals:
StackMap stack:
iload 7
bipush 127
if_icmpge 34
31: iload 7
bipush 90
if_icmpgt 35
iload 7
bipush 65
if_icmplt 35
32: iinc 7 32
33: goto 35
34: StackMap locals:
StackMap stack:
iload 7
i2c
invokestatic java.lang.Character.toLowerCase:(C)C
istore 7
35: StackMap locals:
StackMap stack:
iload 6
iload 7
if_icmpeq 37
36: iconst_0
ireturn
end local 7 end local 6 37: StackMap locals:
StackMap stack:
iload 4
iload 2
if_icmplt 5
iload 5
iload 3
if_icmplt 5
end local 5 end local 4 38: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 str1 Ljava/lang/String;
0 39 1 str2 Ljava/lang/String;
1 39 2 len1 I
2 39 3 len2 I
3 38 4 i1 I
4 38 5 i2 I
8 37 6 c1 I
11 37 7 c2 I
MethodParameters:
Name Flags
str1
str2
public static boolean encodingStartsWith(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: aload 1
invokevirtual java.lang.String.length:()I
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 29
5: StackMap locals: java.lang.String java.lang.String int int int int
StackMap stack:
iload 4
iload 2
if_icmplt 6
ldc 65536
goto 7
StackMap locals:
StackMap stack:
6: aload 0
iload 4
iinc 4 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
7: istore 6
start local 6 8: iload 5
iload 3
if_icmplt 9
ldc 65536
goto 10
StackMap locals: int
StackMap stack:
9: aload 1
iload 5
iinc 5 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
10: istore 7
start local 7 11: iload 6
iload 7
if_icmpne 16
12: goto 29
13: StackMap locals: int
StackMap stack:
iload 4
iload 2
if_icmplt 14
ldc 65536
goto 15
StackMap locals:
StackMap stack:
14: aload 0
iload 4
iinc 4 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
15: istore 6
16: StackMap locals:
StackMap stack:
iload 6
bipush 32
if_icmple 13
iload 6
bipush 95
if_icmpeq 13
iload 6
bipush 45
if_icmpeq 13
17: goto 21
18: StackMap locals:
StackMap stack:
iload 5
iload 3
if_icmplt 19
ldc 65536
goto 20
StackMap locals:
StackMap stack:
19: aload 1
iload 5
iinc 5 1
invokevirtual java.lang.String.charAt:(I)C
StackMap locals:
StackMap stack: int
20: istore 7
21: StackMap locals:
StackMap stack:
iload 7
bipush 32
if_icmple 18
iload 7
bipush 95
if_icmpeq 18
iload 7
bipush 45
if_icmpeq 18
22: iload 6
iload 7
if_icmpeq 29
23: iload 7
ldc 65536
if_icmpne 25
24: iconst_1
ireturn
25: StackMap locals:
StackMap stack:
iload 6
ldc 65536
if_icmpne 27
26: iconst_0
ireturn
27: StackMap locals:
StackMap stack:
iload 6
i2c
invokestatic java.lang.Character.toLowerCase:(C)C
iload 7
i2c
invokestatic java.lang.Character.toLowerCase:(C)C
if_icmpeq 29
28: iconst_0
ireturn
end local 7 end local 6 29: StackMap locals:
StackMap stack:
iload 4
iload 2
if_icmplt 5
iload 5
iload 3
if_icmplt 5
30: iconst_1
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 31 0 enc Ljava/lang/String;
0 31 1 prefix Ljava/lang/String;
1 31 2 len1 I
2 31 3 len2 I
3 31 4 i1 I
4 31 5 i2 I
8 29 6 c1 I
11 29 7 c2 I
MethodParameters:
Name Flags
enc
prefix
public static java.lang.String trimEncoding(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
invokevirtual java.lang.String.length:()I
istore 3
start local 3 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: iload 4
bipush 32
if_icmple 8
iload 4
invokestatic java.lang.Character.isLetterOrDigit:(C)Z
ifne 6
5: goto 8
end local 4 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 3
if_icmplt 3
8: StackMap locals:
StackMap stack:
iload 2
iload 3
if_icmpne 10
9: aload 0
areturn
10: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 11: iload 2
ifle 20
12: aload 4
aload 0
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: goto 20
14: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 15: iload 5
bipush 32
if_icmple 19
iload 5
invokestatic java.lang.Character.isLetterOrDigit:(C)Z
ifeq 19
16: iload 1
ifeq 18
17: iload 5
invokestatic java.lang.Character.toUpperCase:(C)C
istore 5
18: StackMap locals: int
StackMap stack:
aload 4
iload 5
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 5 19: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
20: iload 2
iload 3
if_icmplt 14
21: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 str Ljava/lang/String;
0 22 1 upperCase Z
1 22 2 i I
2 22 3 len I
4 6 4 c C
11 22 4 sb Ljava/lang/StringBuilder;
15 19 5 c C
MethodParameters:
Name Flags
str
upperCase
public static boolean matches(java.lang.String, char[], int, int);
descriptor: (Ljava/lang/String;[CII)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual java.lang.String.length:()I
iload 3
if_icmpeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
aload 1
iload 2
iload 4
iadd
caload
if_icmpeq 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 3
if_icmplt 4
end local 4 8: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 str Ljava/lang/String;
0 9 1 cbuf [C
0 9 2 offset I
0 9 3 len I
3 8 4 i I
MethodParameters:
Name Flags
str
cbuf
offset
len
public static final boolean isSpace(char);
descriptor: (C)Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 32
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
}
SourceFile: "StringUtil.java"