public class org.springframework.validation.DefaultMessageCodesResolver implements org.springframework.validation.MessageCodesResolver, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.validation.DefaultMessageCodesResolver
super_class: java.lang.Object
{
public static final java.lang.String CODE_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "."
private static final org.springframework.validation.MessageCodeFormatter DEFAULT_FORMATTER;
descriptor: Lorg/springframework/validation/MessageCodeFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private org.springframework.validation.MessageCodeFormatter formatter;
descriptor: Lorg/springframework/validation/MessageCodeFormatter;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.springframework.validation.DefaultMessageCodesResolver$Format.PREFIX_ERROR_CODE:Lorg/springframework/validation/DefaultMessageCodesResolver$Format;
putstatic org.springframework.validation.DefaultMessageCodesResolver.DEFAULT_FORMATTER:Lorg/springframework/validation/MessageCodeFormatter;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc ""
putfield org.springframework.validation.DefaultMessageCodesResolver.prefix:Ljava/lang/String;
2: aload 0
getstatic org.springframework.validation.DefaultMessageCodesResolver.DEFAULT_FORMATTER:Lorg/springframework/validation/MessageCodeFormatter;
putfield org.springframework.validation.DefaultMessageCodesResolver.formatter:Lorg/springframework/validation/MessageCodeFormatter;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
public void setPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnull 1
aload 1
goto 2
StackMap locals:
StackMap stack: org.springframework.validation.DefaultMessageCodesResolver
1: ldc ""
StackMap locals: org.springframework.validation.DefaultMessageCodesResolver java.lang.String
StackMap stack: org.springframework.validation.DefaultMessageCodesResolver java.lang.String
2: putfield org.springframework.validation.DefaultMessageCodesResolver.prefix:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 4 1 prefix Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
prefix
protected java.lang.String getPrefix();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.validation.DefaultMessageCodesResolver.prefix:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
public void setMessageCodeFormatter(org.springframework.validation.MessageCodeFormatter);
descriptor: (Lorg/springframework/validation/MessageCodeFormatter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnull 1
aload 1
goto 2
StackMap locals:
StackMap stack: org.springframework.validation.DefaultMessageCodesResolver
1: getstatic org.springframework.validation.DefaultMessageCodesResolver.DEFAULT_FORMATTER:Lorg/springframework/validation/MessageCodeFormatter;
StackMap locals: org.springframework.validation.DefaultMessageCodesResolver org.springframework.validation.MessageCodeFormatter
StackMap stack: org.springframework.validation.DefaultMessageCodesResolver org.springframework.validation.MessageCodeFormatter
2: putfield org.springframework.validation.DefaultMessageCodesResolver.formatter:Lorg/springframework/validation/MessageCodeFormatter;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 4 1 formatter Lorg/springframework/validation/MessageCodeFormatter;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
formatter
public java.lang.String[] resolveMessageCodes(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
ldc ""
aconst_null
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.resolveMessageCodes:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)[Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 1 1 errorCode Ljava/lang/String;
0 1 2 objectName Ljava/lang/String;
MethodParameters:
Name Flags
errorCode
objectName
public java.lang.String[] resolveMessageCodes(java.lang.String, java.lang.String, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 5
start local 5 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 2: aload 0
aload 3
aload 6
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.buildFieldList:(Ljava/lang/String;Ljava/util/List;)V
3: aload 0
aload 5
aload 1
aload 2
aload 6
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.addCodes:(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Iterable;)V
4: aload 3
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 7
start local 7 5: iload 7
iconst_m1
if_icmpeq 7
6: aload 0
aload 3
iload 7
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 6
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.buildFieldList:(Ljava/lang/String;Ljava/util/List;)V
7: StackMap locals: java.util.Set java.util.List int
StackMap stack:
aload 0
aload 5
aload 1
aconst_null
aload 6
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.addCodes:(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Iterable;)V
8: aload 4
ifnull 10
9: aload 0
aload 5
aload 1
aconst_null
aload 4
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.addCode:(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 1
aconst_null
aconst_null
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.addCode:(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
11: aload 5
invokestatic org.springframework.util.StringUtils.toStringArray:(Ljava/util/Collection;)[Ljava/lang/String;
areturn
end local 7 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 12 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 12 1 errorCode Ljava/lang/String;
0 12 2 objectName Ljava/lang/String;
0 12 3 field Ljava/lang/String;
0 12 4 fieldType Ljava/lang/Class<*>;
1 12 5 codeList Ljava/util/Set<Ljava/lang/String;>;
2 12 6 fieldList Ljava/util/List<Ljava/lang/String;>;
5 12 7 dotIndex I
Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class<*>;)[Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
1:
2:
3:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
errorCode
objectName
field
fieldType
private void addCodes(java.util.Collection<java.lang.String>, java.lang.String, java.lang.String, java.lang.Iterable<java.lang.String>);
descriptor: (Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Iterable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 3
StackMap locals: org.springframework.validation.DefaultMessageCodesResolver java.util.Collection java.lang.String java.lang.String java.lang.Iterable top java.util.Iterator
StackMap stack:
1: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 2: aload 0
aload 1
aload 2
aload 3
aload 5
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.addCode:(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
end local 5 3: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 5 1 codeList Ljava/util/Collection<Ljava/lang/String;>;
0 5 2 errorCode Ljava/lang/String;
0 5 3 objectName Ljava/lang/String;
0 5 4 fields Ljava/lang/Iterable<Ljava/lang/String;>;
2 3 5 field Ljava/lang/String;
Signature: (Ljava/util/Collection<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Iterable<Ljava/lang/String;>;)V
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.springframework.lang.Nullable()
3:
MethodParameters:
Name Flags
codeList
errorCode
objectName
fields
private void addCode(java.util.Collection<java.lang.String>, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 0
aload 0
getfield org.springframework.validation.DefaultMessageCodesResolver.formatter:Lorg/springframework/validation/MessageCodeFormatter;
aload 2
aload 3
aload 4
invokeinterface org.springframework.validation.MessageCodeFormatter.format:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.postProcessMessageCode:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 2 1 codeList Ljava/util/Collection<Ljava/lang/String;>;
0 2 2 errorCode Ljava/lang/String;
0 2 3 objectName Ljava/lang/String;
0 2 4 field Ljava/lang/String;
Signature: (Ljava/util/Collection<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.springframework.lang.Nullable()
3:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
codeList
errorCode
objectName
field
protected void buildFieldList(java.lang.String, java.util.List<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 1
astore 3
start local 3 2: aload 3
bipush 91
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 3: goto 11
4: StackMap locals: java.lang.String int
StackMap stack:
aload 3
bipush 93
iload 4
invokevirtual java.lang.String.indexOf:(II)I
istore 5
start local 5 5: iload 5
iconst_m1
if_icmpeq 10
6: new java.lang.StringBuilder
dup
aload 3
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
iload 5
iconst_1
iadd
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;
astore 3
7: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 3
bipush 91
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
9: goto 11
10: StackMap locals: int
StackMap stack:
iconst_m1
istore 4
end local 5 11: StackMap locals:
StackMap stack:
iload 4
iconst_m1
if_icmpne 4
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 13 1 field Ljava/lang/String;
0 13 2 fieldList Ljava/util/List<Ljava/lang/String;>;
2 13 3 plainField Ljava/lang/String;
3 13 4 keyIndex I
5 11 5 endKeyIndex I
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
field
fieldList
protected java.lang.String postProcessMessageCode(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual org.springframework.validation.DefaultMessageCodesResolver.getPrefix:()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 1 0 this Lorg/springframework/validation/DefaultMessageCodesResolver;
0 1 1 code Ljava/lang/String;
MethodParameters:
Name Flags
code
}
SourceFile: "DefaultMessageCodesResolver.java"
NestMembers:
org.springframework.validation.DefaultMessageCodesResolver$Format org.springframework.validation.DefaultMessageCodesResolver$Format$1 org.springframework.validation.DefaultMessageCodesResolver$Format$2
InnerClasses:
public abstract Format = org.springframework.validation.DefaultMessageCodesResolver$Format of org.springframework.validation.DefaultMessageCodesResolver