public final class io.micronaut.core.util.StringUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.micronaut.core.util.StringUtils
super_class: java.lang.Object
{
public static final java.lang.String TRUE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "true"
public static final java.lang.String FALSE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "false"
public static final java.lang.String[] EMPTY_STRING_ARRAY;
descriptor: [Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String EMPTY_STRING;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: ""
public static final char SPACE;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final java.util.regex.Pattern DIGIT_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray java.lang.String
putstatic io.micronaut.core.util.StringUtils.EMPTY_STRING_ARRAY:[Ljava/lang/String;
1: ldc "\\d+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.micronaut.core.util.StringUtils.DIGIT_PATTERN:Ljava/util/regex/Pattern;
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 Lio/micronaut/core/util/StringUtils;
public static boolean isEmpty(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokeinterface java.lang.CharSequence.length:()I
ifeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 str Ljava/lang/CharSequence;
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.Nullable()
MethodParameters:
Name Flags
str
public static boolean isNotEmpty(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.micronaut.core.util.StringUtils.isEmpty:(Ljava/lang/CharSequence;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 str Ljava/lang/CharSequence;
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.Nullable()
MethodParameters:
Name Flags
str
public static boolean hasText(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokestatic io.micronaut.core.util.StringUtils.isEmpty:(Ljava/lang/CharSequence;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.lang.CharSequence.length:()I
istore 1
start local 1 3: iconst_0
istore 2
start local 2 4: goto 8
5: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic java.lang.Character.isWhitespace:(C)Z
ifne 7
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 1
if_icmplt 5
end local 2 9: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 str Ljava/lang/CharSequence;
3 10 1 strLen I
4 9 2 i I
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.Nullable()
MethodParameters:
Name Flags
str
public static java.util.List<java.lang.String> internListOf([]);
descriptor: ([Ljava/lang/Object;)Ljava/util/List;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 0
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 3: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.Object[] java.util.List top int int java.lang.Object[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 1
aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: aload 1
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 objects [Ljava/lang/Object;
3 9 1 strings Ljava/util/List<Ljava/lang/String;>;
5 6 2 object Ljava/lang/Object;
Signature: ([Ljava/lang/Object;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
objects
public static java.util.Map<java.lang.String, java.lang.Object> internMapOf([]);
descriptor: ([Ljava/lang/Object;)Ljava/util/Map;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
2: StackMap locals:
StackMap stack:
aload 0
arraylength
istore 1
start local 1 3: iload 1
iconst_2
irem
ifeq 5
4: new java.lang.IllegalArgumentException
dup
ldc "Number of arguments should be an even number representing the keys and values"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
new java.util.HashMap
dup
iload 1
iconst_2
idiv
i2d
ldc 0.75
ddiv
d2i
invokespecial java.util.HashMap.<init>:(I)V
astore 2
start local 2 6: iconst_0
istore 3
start local 3 7: goto 11
8: StackMap locals: java.util.Map int
StackMap stack:
aload 0
iload 3
iinc 3 1
aaload
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 4
start local 4 9: aload 0
iload 3
iinc 3 1
aaload
astore 5
start local 5 10: aload 2
aload 4
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 11: StackMap locals:
StackMap stack:
iload 3
aload 0
arraylength
iconst_1
isub
if_icmplt 8
12: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 values [Ljava/lang/Object;
3 13 1 len I
6 13 2 answer Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
7 13 3 i I
9 11 4 key Ljava/lang/String;
10 11 5 val Ljava/lang/Object;
Signature: ([Ljava/lang/Object;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
MethodParameters:
Name Flags
values
public static boolean isDigits(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.micronaut.core.util.StringUtils.isNotEmpty:(Ljava/lang/CharSequence;)Z
ifeq 1
getstatic io.micronaut.core.util.StringUtils.DIGIT_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public static java.lang.String[] tokenizeToStringArray(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
iconst_1
invokestatic io.micronaut.core.util.StringUtils.tokenizeToStringArray:(Ljava/lang/String;Ljava/lang/String;ZZ)[Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
0 1 1 delimiters Ljava/lang/String;
MethodParameters:
Name Flags
str
delimiters
public static java.lang.String[] tokenizeToStringArray(java.lang.String, java.lang.String, boolean, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZZ)[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.util.StringTokenizer
dup
aload 0
aload 1
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 4
start local 4 3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 4: goto 10
5: StackMap locals: java.util.StringTokenizer java.util.List
StackMap stack:
aload 4
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 6
start local 6 6: iload 2
ifeq 8
7: aload 6
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 6
8: StackMap locals: java.lang.String
StackMap stack:
iload 3
ifeq 9
aload 6
invokevirtual java.lang.String.length:()I
ifle 10
9: StackMap locals:
StackMap stack:
aload 5
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 10: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 5
11: aload 5
iconst_0
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
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 12 0 str Ljava/lang/String;
0 12 1 delimiters Ljava/lang/String;
0 12 2 trimTokens Z
0 12 3 ignoreEmptyTokens Z
3 12 4 st Ljava/util/StringTokenizer;
4 12 5 tokens Ljava/util/List<Ljava/lang/String;>;
6 10 6 token Ljava/lang/String;
MethodParameters:
Name Flags
str
delimiters
trimTokens
ignoreEmptyTokens
public static java.lang.String convertDotToUnderscore(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokestatic io.micronaut.core.util.StringUtils.convertDotToUnderscore:(Ljava/lang/String;Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 dottedProperty Ljava/lang/String;
MethodParameters:
Name Flags
dottedProperty
public static java.lang.String convertDotToUnderscore(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
bipush 46
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 0
3: iload 1
ifeq 4
aload 0
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
goto 5
StackMap locals:
StackMap stack:
4: aload 0
StackMap locals:
StackMap stack: java.lang.String
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 dottedProperty Ljava/lang/String;
0 6 1 uppercase Z
MethodParameters:
Name Flags
dottedProperty
uppercase
public static java.lang.String prependUri(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
1: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 4
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 4
3: ldc ""
astore 1
4: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
5: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
6: aload 1
ldc "[//]{2,}"
ldc "/"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
aload 1
ldc "(?<=[^:])[//]{2,}"
ldc "/"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 baseUri Ljava/lang/String;
0 8 1 uri Ljava/lang/String;
MethodParameters:
Name Flags
baseUri
uri
public static java.lang.String capitalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 1
start local 1 1: aload 1
arraylength
ifle 3
2: aload 1
iconst_0
aload 1
iconst_0
caload
invokestatic java.lang.Character.toUpperCase:(C)C
castore
3: StackMap locals: char[]
StackMap stack:
new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([C)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 str Ljava/lang/String;
1 4 1 array [C
MethodParameters:
Name Flags
str
public static java.lang.String trimToNull(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
1: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/String.trim()Ljava/lang/String; (5)
(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
2: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
io/micronaut/core/util/StringUtils.isNotEmpty(Ljava/lang/CharSequence;)Z (6)
(Ljava/lang/String;)Z
invokevirtual java.util.Optional.filter:(Ljava/util/function/Predicate;)Ljava/util/Optional;
3: aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 string Ljava/lang/String;
RuntimeInvisibleAnnotations:
edu.umd.cs.findbugs.annotations.Nullable()
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.Nullable()
MethodParameters:
Name Flags
string
public static boolean isTrue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 4
121: 3
3551: 4
119527: 5
3569038: 6
default: 8
}
StackMap locals: java.lang.String
StackMap stack:
3: aload 1
ldc "y"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 8
StackMap locals:
StackMap stack:
4: aload 1
ldc "on"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 8
StackMap locals:
StackMap stack:
5: aload 1
ldc "yes"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 8
StackMap locals:
StackMap stack:
6: aload 1
ldc "true"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 8
7: StackMap locals:
StackMap stack:
iconst_1
ireturn
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 booleanString Ljava/lang/String;
MethodParameters:
Name Flags
booleanString
}
SourceFile: "StringUtils.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles