public class org.springframework.web.method.annotation.ErrorsMethodArgumentResolver implements org.springframework.web.method.support.HandlerMethodArgumentResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.method.annotation.ErrorsMethodArgumentResolver
super_class: java.lang.Object
{
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 Lorg/springframework/web/method/annotation/ErrorsMethodArgumentResolver;
public boolean supportsParameter(org.springframework.core.MethodParameter);
descriptor: (Lorg/springframework/core/MethodParameter;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.springframework.core.MethodParameter.getParameterType:()Ljava/lang/Class;
astore 2
start local 2 1: ldc Lorg/springframework/validation/Errors;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/method/annotation/ErrorsMethodArgumentResolver;
0 2 1 parameter Lorg/springframework/core/MethodParameter;
1 2 2 paramType Ljava/lang/Class<*>;
MethodParameters:
Name Flags
parameter
public java.lang.Object resolveArgument(org.springframework.core.MethodParameter, org.springframework.web.method.support.ModelAndViewContainer, org.springframework.web.context.request.NativeWebRequest, org.springframework.web.bind.support.WebDataBinderFactory);
descriptor: (Lorg/springframework/core/MethodParameter;Lorg/springframework/web/method/support/ModelAndViewContainer;Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/bind/support/WebDataBinderFactory;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
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 2
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
2: StackMap locals:
StackMap stack: int
ldc "Errors/BindingResult argument only supported on regular handler methods"
3: invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
4: aload 2
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.getModel:()Lorg/springframework/ui/ModelMap;
astore 5
start local 5 5: aload 5
invokevirtual org.springframework.ui.ModelMap.keySet:()Ljava/util/Set;
invokestatic org.springframework.util.CollectionUtils.lastElement:(Ljava/util/Set;)Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 6: aload 6
ifnull 8
aload 6
getstatic org.springframework.validation.BindingResult.MODEL_KEY_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
7: aload 5
aload 6
invokevirtual org.springframework.ui.ModelMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
8: StackMap locals: org.springframework.ui.ModelMap java.lang.String
StackMap stack:
new java.lang.IllegalStateException
dup
9: new java.lang.StringBuilder
dup
ldc "An Errors/BindingResult argument is expected to be declared immediately after the model attribute, the @RequestBody or the @RequestPart arguments to which they apply: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: aload 1
invokevirtual org.springframework.core.MethodParameter.getMethod:()Ljava/lang/reflect/Method;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
11: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
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 13 0 this Lorg/springframework/web/method/annotation/ErrorsMethodArgumentResolver;
0 13 1 parameter Lorg/springframework/core/MethodParameter;
0 13 2 mavContainer Lorg/springframework/web/method/support/ModelAndViewContainer;
0 13 3 webRequest Lorg/springframework/web/context/request/NativeWebRequest;
0 13 4 binderFactory Lorg/springframework/web/bind/support/WebDataBinderFactory;
5 13 5 model Lorg/springframework/ui/ModelMap;
6 13 6 lastKey Ljava/lang/String;
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
3:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
parameter
mavContainer
webRequest
binderFactory
}
SourceFile: "ErrorsMethodArgumentResolver.java"