public class io.micronaut.core.naming.NameUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.micronaut.core.naming.NameUtils
super_class: java.lang.Object
{
private static final int PREFIX_LENTGH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int IS_LENTGH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final java.util.regex.Pattern DOT_UPPER;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern SERVICE_ID_REGEX;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String PREFIX_GET;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "get"
private static final java.lang.String PREFIX_SET;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "set"
private static final java.util.regex.Pattern ENVIRONMENT_VAR_SEQUENCE;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern KEBAB_CASE_SEQUENCE;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern KEBAB_REPLACEMENTS;
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: ldc "\\.[A-Z\\$]"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.micronaut.core.naming.NameUtils.DOT_UPPER:Ljava/util/regex/Pattern;
1: ldc "[\\p{javaLowerCase}\\d-]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.micronaut.core.naming.NameUtils.SERVICE_ID_REGEX:Ljava/util/regex/Pattern;
2: ldc "^[\\p{Lu}_{0-9}]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.micronaut.core.naming.NameUtils.ENVIRONMENT_VAR_SEQUENCE:Ljava/util/regex/Pattern;
3: ldc "^(([a-z0-9])+(\\-|\\.|:)?)*([a-z0-9])+$"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.micronaut.core.naming.NameUtils.KEBAB_CASE_SEQUENCE:Ljava/util/regex/Pattern;
4: ldc "[_ ]"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.micronaut.core.naming.NameUtils.KEBAB_REPLACEMENTS: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/naming/NameUtils;
public static boolean isHyphenatedLowerCase(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.naming.NameUtils.SERVICE_ID_REGEX: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
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLetter:(C)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 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String decapitalizeWithoutSuffix(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic io.micronaut.core.naming.NameUtils.decapitalize:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
aload 1
invokestatic io.micronaut.core.naming.NameUtils.trimSuffix:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
0 2 1 suffixes [Ljava/lang/String;
1 2 2 decapitalized Ljava/lang/String;
MethodParameters:
Name Flags
name
suffixes
public static java.lang.String trimSuffix(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnull 7
1: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 0
aload 2
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
aload 2
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: StackMap locals: java.lang.String java.lang.String[]
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 string Ljava/lang/String;
0 8 1 suffixes [Ljava/lang/String;
3 5 2 suffix Ljava/lang/String;
MethodParameters:
Name Flags
string
suffixes
public static java.lang.String capitalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
start local 1 1: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLowerCase:(C)Z
ifeq 3
aload 1
invokevirtual java.lang.String.length:()I
ifle 3
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 3
2: aload 0
areturn
3: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
iconst_0
iconst_1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
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;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
1 4 1 rest Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String hyphenate(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.naming.NameUtils.hyphenate:(Ljava/lang/String;Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String hyphenate(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic io.micronaut.core.naming.NameUtils.isHyphenatedLowerCase:(Ljava/lang/String;)Z
ifeq 2
1: getstatic io.micronaut.core.naming.NameUtils.KEBAB_REPLACEMENTS:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
ldc "-"
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
bipush 45
istore 2
start local 2 3: getstatic io.micronaut.core.naming.NameUtils.KEBAB_REPLACEMENTS:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
ldc "-"
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
iload 1
iload 2
invokestatic io.micronaut.core.naming.NameUtils.separateCamelCase:(Ljava/lang/String;ZC)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
0 4 1 lowerCase Z
3 4 2 separatorChar C
MethodParameters:
Name Flags
name
lowerCase
public static java.lang.String dehyphenate(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
ldc "-"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
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;
io/micronaut/core/naming/NameUtils.lambda$0(Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: ldc ""
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String getPackageName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic io.micronaut.core.naming.NameUtils.DOT_UPPER:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 1: aload 1
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 4
2: aload 1
invokevirtual java.util.regex.Matcher.start:()I
istore 2
start local 2 3: aload 0
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 2 4: StackMap locals: java.util.regex.Matcher
StackMap stack:
ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 className Ljava/lang/String;
1 5 1 matcher Ljava/util/regex/Matcher;
3 4 2 position I
MethodParameters:
Name Flags
className
public static java.lang.String underscoreSeparate(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
bipush 45
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
iconst_0
bipush 95
invokestatic io.micronaut.core.naming.NameUtils.separateCamelCase:(Ljava/lang/String;ZC)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 camelCase Ljava/lang/String;
MethodParameters:
Name Flags
camelCase
public static java.lang.String environmentName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
bipush 45
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
bipush 46
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
iconst_0
bipush 95
invokestatic io.micronaut.core.naming.NameUtils.separateCamelCase:(Ljava/lang/String;ZC)Ljava/lang/String;
1: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 camelCase Ljava/lang/String;
MethodParameters:
Name Flags
camelCase
public static java.lang.String getSimpleName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic io.micronaut.core.naming.NameUtils.DOT_UPPER:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 1: aload 1
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 4
2: aload 1
invokevirtual java.util.regex.Matcher.start:()I
istore 2
start local 2 3: aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 2 4: StackMap locals: java.util.regex.Matcher
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 className Ljava/lang/String;
1 5 1 matcher Ljava/util/regex/Matcher;
3 4 2 position I
MethodParameters:
Name Flags
className
public static boolean isSetterName(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
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iload 1
iconst_3
if_icmple 3
aload 0
ldc "set"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
iconst_3
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ireturn
3: StackMap locals: int
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 methodName Ljava/lang/String;
1 4 1 len I
MethodParameters:
Name Flags
methodName
public static java.lang.String getPropertyNameForSetter(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 io.micronaut.core.naming.NameUtils.isSetterName:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic io.micronaut.core.naming.NameUtils.decapitalize:(Ljava/lang/String;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 setterName Ljava/lang/String;
MethodParameters:
Name Flags
setterName
public static java.lang.String setterNameFor(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: ldc "propertyName"
aload 0
invokestatic io.micronaut.core.util.ArgumentUtils.requireNonNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "set"
aload 0
invokestatic io.micronaut.core.naming.NameUtils.nameFor:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 propertyName Ljava/lang/String;
RuntimeInvisibleAnnotations:
edu.umd.cs.findbugs.annotations.NonNull()
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.NonNull()
MethodParameters:
Name Flags
propertyName
public static boolean isGetterName(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
ldc "get"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
2: iconst_3
istore 1
3: goto 8
StackMap locals: int
StackMap stack:
4: aload 0
ldc "is"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
5: iconst_2
istore 1
6: goto 8
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 9: iload 2
iload 1
if_icmple 11
10: aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ireturn
11: StackMap locals: int
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 methodName Ljava/lang/String;
1 12 1 prefixLength I
9 12 2 len I
MethodParameters:
Name Flags
methodName
public static java.lang.String getPropertyNameForGetter(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic io.micronaut.core.naming.NameUtils.isGetterName:(Ljava/lang/String;)Z
ifeq 7
1: iconst_0
istore 1
start local 1 2: aload 0
ldc "get"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: iconst_3
istore 1
4: StackMap locals: int
StackMap stack:
aload 0
ldc "is"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: iconst_2
istore 1
6: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic io.micronaut.core.naming.NameUtils.decapitalize:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 getterName Ljava/lang/String;
2 7 1 prefixLength I
MethodParameters:
Name Flags
getterName
public static java.lang.String getterNameFor(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: ldc "propertyName"
aload 0
invokestatic io.micronaut.core.util.ArgumentUtils.requireNonNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "get"
aload 0
invokestatic io.micronaut.core.naming.NameUtils.nameFor:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 propertyName Ljava/lang/String;
RuntimeInvisibleAnnotations:
edu.umd.cs.findbugs.annotations.NonNull()
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.NonNull()
MethodParameters:
Name Flags
propertyName
public static java.lang.String getterNameFor(java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: ldc "propertyName"
aload 0
invokestatic io.micronaut.core.util.ArgumentUtils.requireNonNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 2
iconst_1
goto 3
StackMap locals:
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 2
start local 2 4: aload 0
iload 2
invokestatic io.micronaut.core.naming.NameUtils.getterNameFor:(Ljava/lang/String;Z)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 propertyName Ljava/lang/String;
0 5 1 type Ljava/lang/Class<*>;
4 5 2 isBoolean Z
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/lang/String;
RuntimeInvisibleAnnotations:
edu.umd.cs.findbugs.annotations.NonNull()
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.NonNull()
1:
edu.umd.cs.findbugs.annotations.NonNull()
MethodParameters:
Name Flags
propertyName
type
public static java.lang.String getterNameFor(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
ldc "is"
goto 2
StackMap locals:
StackMap stack:
1: ldc "get"
StackMap locals:
StackMap stack: java.lang.String
2: aload 0
invokestatic io.micronaut.core.naming.NameUtils.nameFor:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 propertyName Ljava/lang/String;
0 3 1 isBoolean Z
RuntimeInvisibleParameterAnnotations:
0:
edu.umd.cs.findbugs.annotations.NonNull()
1:
MethodParameters:
Name Flags
propertyName
isBoolean
private static java.lang.String nameFor(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iload 2
tableswitch { // 0 - 1
0: 2
1: 3
default: 4
}
2: StackMap locals: int
StackMap stack:
aload 1
areturn
3: 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
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
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
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toUpperCase:(C)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 prefix Ljava/lang/String;
0 5 1 propertyName Ljava/lang/String;
1 5 2 len I
RuntimeInvisibleParameterAnnotations:
0:
1:
edu.umd.cs.findbugs.annotations.NonNull()
MethodParameters:
Name Flags
prefix
propertyName
public static java.lang.String decapitalize(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
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
tableswitch { // 0 - 1
0: 3
1: 4
default: 7
}
3: StackMap locals:
StackMap stack:
aload 0
areturn
4: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 5
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toLowerCase:(C)C
invokestatic java.lang.Character.toString:(C)Ljava/lang/String;
goto 6
StackMap locals:
StackMap stack:
5: aload 0
StackMap locals:
StackMap stack: java.lang.String
6: areturn
7: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 8
aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 9
8: StackMap locals:
StackMap stack:
aload 0
areturn
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 1
start local 1 10: aload 1
iconst_0
aload 1
iconst_0
caload
invokestatic java.lang.Character.toLowerCase:(C)C
castore
11: 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 12 0 name Ljava/lang/String;
10 12 1 chars [C
MethodParameters:
Name Flags
name
private static java.lang.String separateCamelCase(java.lang.String, boolean, char);
descriptor: (Ljava/lang/String;ZC)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=12, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifne 25
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 2: iconst_1
istore 4
start local 4 3: bipush 48
istore 5
start local 5 4: aload 0
invokevirtual java.lang.String.toCharArray:()[C
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 23
StackMap locals: java.lang.String int int java.lang.StringBuilder int int top int int char[]
StackMap stack:
5: aload 9
iload 7
caload
istore 6
start local 6 6: iload 4
ifeq 10
7: aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
8: iconst_0
istore 4
9: goto 21
10: StackMap locals: java.lang.String int int java.lang.StringBuilder int int int int int char[]
StackMap stack:
iload 6
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 15
iload 5
invokestatic java.lang.Character.isUpperCase:(C)Z
ifne 15
11: iload 6
iload 2
if_icmpeq 13
12: aload 3
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
13: StackMap locals:
StackMap stack:
aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: goto 21
15: StackMap locals:
StackMap stack:
iload 6
bipush 46
if_icmpne 17
16: iconst_1
istore 4
17: StackMap locals:
StackMap stack:
iload 6
iload 2
if_icmpeq 21
18: iload 5
iload 2
if_icmpne 20
19: aload 3
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
20: StackMap locals:
StackMap stack:
aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
21: StackMap locals:
StackMap stack:
iload 6
istore 5
end local 6 22: iinc 7 1
StackMap locals: java.lang.String int int java.lang.StringBuilder int int top int int char[]
StackMap stack:
23: iload 7
iload 8
if_icmplt 5
24: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 25: StackMap locals: java.lang.String int int
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 26: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 4
start local 4 27: iconst_1
istore 5
start local 5 28: bipush 48
istore 6
start local 6 29: aload 4
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 49
StackMap locals: java.lang.String int int java.lang.StringBuilder char[] int int top int int char[]
StackMap stack:
30: aload 10
iload 8
caload
istore 7
start local 7 31: iload 7
invokestatic java.lang.Character.isLowerCase:(C)Z
ifne 32
iload 7
invokestatic java.lang.Character.isLetter:(C)Z
ifne 38
32: StackMap locals: java.lang.String int int java.lang.StringBuilder char[] int int int int int char[]
StackMap stack:
iconst_0
istore 5
33: iload 7
iload 2
if_icmpeq 47
34: iload 6
iload 2
if_icmpne 36
35: aload 3
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
36: StackMap locals:
StackMap stack:
aload 3
iload 7
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
37: goto 47
38: StackMap locals:
StackMap stack:
iload 7
invokestatic java.lang.Character.toLowerCase:(C)C
istore 11
start local 11 39: iload 5
ifeq 43
40: iconst_0
istore 5
41: aload 3
iload 11
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
42: goto 47
StackMap locals: int
StackMap stack:
43: iload 6
invokestatic java.lang.Character.isUpperCase:(C)Z
ifne 44
iload 6
invokestatic java.lang.Character.isDigit:(C)Z
ifne 44
iload 6
bipush 46
if_icmpne 46
44: StackMap locals:
StackMap stack:
aload 3
iload 11
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
45: goto 47
46: StackMap locals:
StackMap stack:
aload 3
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
iload 11
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 11 47: StackMap locals:
StackMap stack:
iload 7
istore 6
end local 7 48: iinc 8 1
StackMap locals: java.lang.String int int java.lang.StringBuilder char[] int int top int int char[]
StackMap stack:
49: iload 8
iload 9
if_icmplt 30
50: aload 3
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 51 0 name Ljava/lang/String;
0 51 1 lowerCase Z
0 51 2 separatorChar C
2 25 3 newName Ljava/lang/StringBuilder;
3 25 4 first Z
4 25 5 last C
6 22 6 c C
26 51 3 newName Ljava/lang/StringBuilder;
27 51 4 chars [C
28 51 5 first Z
29 51 6 last C
31 48 7 c C
39 47 11 lowerCaseChar C
MethodParameters:
Name Flags
name
lowerCase
separatorChar
public static java.lang.String extension(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: aload 0
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 2: aload 0
bipush 92
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 3: iload 2
iload 3
invokestatic java.lang.Math.max:(II)I
istore 4
start local 4 4: iload 4
iload 1
if_icmple 5
iconst_m1
goto 6
StackMap locals: java.lang.String int int int int
StackMap stack:
5: iload 1
StackMap locals:
StackMap stack: int
6: istore 5
start local 5 7: iload 5
iconst_m1
if_icmpne 9
8: ldc ""
areturn
9: StackMap locals: int
StackMap stack:
aload 0
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/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 10 0 filename Ljava/lang/String;
1 10 1 extensionPos I
2 10 2 lastUnixPos I
3 10 3 lastWindowsPos I
4 10 4 lastSeparator I
7 10 5 index I
MethodParameters:
Name Flags
filename
public static java.lang.String camelCase(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.naming.NameUtils.camelCase:(Ljava/lang/String;Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public static java.lang.String camelCase(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "[\\s_-]"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
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;
io/micronaut/core/naming/NameUtils.capitalize(Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
ldc ""
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: iload 1
ifeq 3
2: aload 2
invokestatic io.micronaut.core.naming.NameUtils.decapitalize:(Ljava/lang/String;)Ljava/lang/String;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 str Ljava/lang/String;
0 4 1 lowerCaseFirstLetter Z
1 4 2 result Ljava/lang/String;
MethodParameters:
Name Flags
str
lowerCaseFirstLetter
public static java.lang.String filename(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: aload 0
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 2: aload 0
bipush 92
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 3: iload 2
iload 3
invokestatic java.lang.Math.max:(II)I
istore 4
start local 4 4: iload 4
iload 1
if_icmple 5
aload 0
invokevirtual java.lang.String.length:()I
goto 6
StackMap locals: java.lang.String int int int int
StackMap stack:
5: iload 1
StackMap locals:
StackMap stack: int
6: istore 5
start local 5 7: iload 5
iconst_m1
if_icmpne 9
8: ldc ""
areturn
9: StackMap locals: int
StackMap stack:
aload 0
iload 4
iconst_1
iadd
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/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 10 0 path Ljava/lang/String;
1 10 1 extensionPos I
2 10 2 lastUnixPos I
3 10 3 lastWindowsPos I
4 10 4 lastSeparator I
7 10 5 index I
MethodParameters:
Name Flags
path
public static boolean isValidHyphenatedPropertyName(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: getstatic io.micronaut.core.naming.NameUtils.KEBAB_CASE_SEQUENCE: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
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public static boolean isEnvironmentName(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: getstatic io.micronaut.core.naming.NameUtils.ENVIRONMENT_VAR_SEQUENCE: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
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
private static java.lang.String lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
ifle 2
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLetter:(C)Z
ifeq 2
1: new java.lang.StringBuilder
dup
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toUpperCase:(C)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 str Ljava/lang/String;
}
SourceFile: "NameUtils.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles