public final class org.springframework.web.method.annotation.ModelFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.springframework.web.method.annotation.ModelFactory
super_class: java.lang.Object
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.List<org.springframework.web.method.annotation.ModelFactory$ModelMethod> modelMethods;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/web/method/annotation/ModelFactory$ModelMethod;>;
private final org.springframework.web.bind.support.WebDataBinderFactory dataBinderFactory;
descriptor: Lorg/springframework/web/bind/support/WebDataBinderFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.web.method.annotation.SessionAttributesHandler sessionAttributesHandler;
descriptor: Lorg/springframework/web/method/annotation/SessionAttributesHandler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/web/method/annotation/ModelFactory;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.web.method.annotation.ModelFactory.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.List<org.springframework.web.method.support.InvocableHandlerMethod>, org.springframework.web.bind.support.WebDataBinderFactory, org.springframework.web.method.annotation.SessionAttributesHandler);
descriptor: (Ljava/util/List;Lorg/springframework/web/bind/support/WebDataBinderFactory;Lorg/springframework/web/method/annotation/SessionAttributesHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
2: aload 1
ifnull 7
3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.springframework.web.method.annotation.ModelFactory java.util.List org.springframework.web.bind.support.WebDataBinderFactory org.springframework.web.method.annotation.SessionAttributesHandler top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.method.support.InvocableHandlerMethod
astore 4
start local 4 5: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
new org.springframework.web.method.annotation.ModelFactory$ModelMethod
dup
aload 4
invokespecial org.springframework.web.method.annotation.ModelFactory$ModelMethod.<init>:(Lorg/springframework/web/method/support/InvocableHandlerMethod;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: StackMap locals: org.springframework.web.method.annotation.ModelFactory java.util.List org.springframework.web.bind.support.WebDataBinderFactory org.springframework.web.method.annotation.SessionAttributesHandler
StackMap stack:
aload 0
aload 2
putfield org.springframework.web.method.annotation.ModelFactory.dataBinderFactory:Lorg/springframework/web/bind/support/WebDataBinderFactory;
8: aload 0
aload 3
putfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 10 1 handlerMethods Ljava/util/List<Lorg/springframework/web/method/support/InvocableHandlerMethod;>;
0 10 2 binderFactory Lorg/springframework/web/bind/support/WebDataBinderFactory;
0 10 3 attributeHandler Lorg/springframework/web/method/annotation/SessionAttributesHandler;
5 6 4 handlerMethod Lorg/springframework/web/method/support/InvocableHandlerMethod;
Signature: (Ljava/util/List<Lorg/springframework/web/method/support/InvocableHandlerMethod;>;Lorg/springframework/web/bind/support/WebDataBinderFactory;Lorg/springframework/web/method/annotation/SessionAttributesHandler;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
2:
MethodParameters:
Name Flags
handlerMethods
binderFactory
attributeHandler
public void initModel(org.springframework.web.context.request.NativeWebRequest, org.springframework.web.method.support.ModelAndViewContainer, org.springframework.web.method.HandlerMethod);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;Lorg/springframework/web/method/HandlerMethod;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
aload 1
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.retrieveAttributes:(Lorg/springframework/web/context/request/WebRequest;)Ljava/util/Map;
astore 4
start local 4 1: aload 2
aload 4
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.mergeAttributes:(Ljava/util/Map;)Lorg/springframework/web/method/support/ModelAndViewContainer;
pop
2: aload 0
aload 1
aload 2
invokevirtual org.springframework.web.method.annotation.ModelFactory.invokeModelAttributeMethods:(Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;)V
3: aload 0
aload 3
invokevirtual org.springframework.web.method.annotation.ModelFactory.findSessionAttributeArguments:(Lorg/springframework/web/method/HandlerMethod;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.context.request.NativeWebRequest org.springframework.web.method.support.ModelAndViewContainer org.springframework.web.method.HandlerMethod java.util.Map top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 5: aload 2
aload 5
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.containsAttribute:(Ljava/lang/String;)Z
ifne 10
6: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
aload 1
aload 5
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.retrieveAttribute:(Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;)Ljava/lang/Object;
astore 7
start local 7 7: aload 7
ifnonnull 9
8: new org.springframework.web.HttpSessionRequiredException
dup
new java.lang.StringBuilder
dup
ldc "Expected session attribute '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokespecial org.springframework.web.HttpSessionRequiredException.<init>:(Ljava/lang/String;Ljava/lang/String;)V
athrow
9: StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.context.request.NativeWebRequest org.springframework.web.method.support.ModelAndViewContainer org.springframework.web.method.HandlerMethod java.util.Map java.lang.String java.util.Iterator java.lang.Object
StackMap stack:
aload 2
aload 5
aload 7
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/web/method/support/ModelAndViewContainer;
pop
end local 7 end local 5 10: StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.context.request.NativeWebRequest org.springframework.web.method.support.ModelAndViewContainer org.springframework.web.method.HandlerMethod java.util.Map top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: return
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/web/method/annotation/ModelFactory;
0 12 1 request Lorg/springframework/web/context/request/NativeWebRequest;
0 12 2 container Lorg/springframework/web/method/support/ModelAndViewContainer;
0 12 3 handlerMethod Lorg/springframework/web/method/HandlerMethod;
1 12 4 sessionAttributes Ljava/util/Map<Ljava/lang/String;*>;
5 10 5 name Ljava/lang/String;
7 10 7 value Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request
container
handlerMethod
private void invokeModelAttributeMethods(org.springframework.web.context.request.NativeWebRequest, org.springframework.web.method.support.ModelAndViewContainer);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: goto 17
1: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.springframework.web.method.annotation.ModelFactory.getNextModelMethod:(Lorg/springframework/web/method/support/ModelAndViewContainer;)Lorg/springframework/web/method/annotation/ModelFactory$ModelMethod;
invokevirtual org.springframework.web.method.annotation.ModelFactory$ModelMethod.getHandlerMethod:()Lorg/springframework/web/method/support/InvocableHandlerMethod;
astore 3
start local 3 2: aload 3
ldc Lorg/springframework/web/bind/annotation/ModelAttribute;
invokevirtual org.springframework.web.method.support.InvocableHandlerMethod.getMethodAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.springframework.web.bind.annotation.ModelAttribute
astore 4
start local 4 3: aload 4
ifnull 4
iconst_1
goto 5
StackMap locals: org.springframework.web.method.support.InvocableHandlerMethod org.springframework.web.bind.annotation.ModelAttribute
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ldc "No ModelAttribute annotation"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
6: aload 2
aload 4
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.name:()Ljava/lang/String;
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.containsAttribute:(Ljava/lang/String;)Z
ifeq 10
7: aload 4
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.binding:()Z
ifne 17
8: aload 2
aload 4
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.name:()Ljava/lang/String;
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.setBindingDisabled:(Ljava/lang/String;)V
9: goto 17
10: StackMap locals:
StackMap stack:
aload 3
aload 1
aload 2
iconst_0
anewarray java.lang.Object
invokevirtual org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest:(Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;[Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 11: aload 3
invokevirtual org.springframework.web.method.support.InvocableHandlerMethod.isVoid:()Z
ifne 17
12: aload 5
aload 3
invokevirtual org.springframework.web.method.support.InvocableHandlerMethod.getReturnType:()Lorg/springframework/core/MethodParameter;
invokestatic org.springframework.web.method.annotation.ModelFactory.getNameForReturnValue:(Ljava/lang/Object;Lorg/springframework/core/MethodParameter;)Ljava/lang/String;
astore 6
start local 6 13: aload 4
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.binding:()Z
ifne 15
14: aload 2
aload 6
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.setBindingDisabled:(Ljava/lang/String;)V
15: StackMap locals: java.lang.Object java.lang.String
StackMap stack:
aload 2
aload 6
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.containsAttribute:(Ljava/lang/String;)Z
ifne 17
16: aload 2
aload 6
aload 5
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.addAttribute:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/web/method/support/ModelAndViewContainer;
pop
end local 6 end local 5 end local 4 end local 3 17: StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.context.request.NativeWebRequest org.springframework.web.method.support.ModelAndViewContainer
StackMap stack:
aload 0
getfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 19 1 request Lorg/springframework/web/context/request/NativeWebRequest;
0 19 2 container Lorg/springframework/web/method/support/ModelAndViewContainer;
2 17 3 modelMethod Lorg/springframework/web/method/support/InvocableHandlerMethod;
3 17 4 ann Lorg/springframework/web/bind/annotation/ModelAttribute;
11 17 5 returnValue Ljava/lang/Object;
13 17 6 returnValueName Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request
container
private org.springframework.web.method.annotation.ModelFactory$ModelMethod getNextModelMethod(org.springframework.web.method.support.ModelAndViewContainer);
descriptor: (Lorg/springframework/web/method/support/ModelAndViewContainer;)Lorg/springframework/web/method/annotation/ModelFactory$ModelMethod;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.method.support.ModelAndViewContainer top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.method.annotation.ModelFactory$ModelMethod
astore 2
start local 2 2: aload 2
aload 1
invokevirtual org.springframework.web.method.annotation.ModelFactory$ModelMethod.checkDependencies:(Lorg/springframework/web/method/support/ModelAndViewContainer;)Z
ifeq 5
3: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
aload 2
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.springframework.web.method.annotation.ModelFactory$ModelMethod
astore 2
start local 2 7: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.modelMethods:Ljava/util/List;
aload 2
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 9 1 container Lorg/springframework/web/method/support/ModelAndViewContainer;
2 5 2 modelMethod Lorg/springframework/web/method/annotation/ModelFactory$ModelMethod;
7 9 2 modelMethod Lorg/springframework/web/method/annotation/ModelFactory$ModelMethod;
MethodParameters:
Name Flags
container
private java.util.List<java.lang.String> findSessionAttributeArguments(org.springframework.web.method.HandlerMethod);
descriptor: (Lorg/springframework/web/method/HandlerMethod;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
invokevirtual org.springframework.web.method.HandlerMethod.getMethodParameters:()[Lorg/springframework/core/MethodParameter;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.method.HandlerMethod java.util.List top int int org.springframework.core.MethodParameter[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
ldc Lorg/springframework/web/bind/annotation/ModelAttribute;
invokevirtual org.springframework.core.MethodParameter.hasParameterAnnotation:(Ljava/lang/Class;)Z
ifeq 8
4: aload 3
invokestatic org.springframework.web.method.annotation.ModelFactory.getNameForParameter:(Lorg/springframework/core/MethodParameter;)Ljava/lang/String;
astore 7
start local 7 5: aload 3
invokevirtual org.springframework.core.MethodParameter.getParameterType:()Ljava/lang/Class;
astore 8
start local 8 6: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
aload 7
aload 8
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.isHandlerSessionAttribute:(Ljava/lang/String;Ljava/lang/Class;)Z
ifeq 8
7: aload 2
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 end local 3 8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 5
if_icmplt 2
10: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 11 1 handlerMethod Lorg/springframework/web/method/HandlerMethod;
1 11 2 result Ljava/util/List<Ljava/lang/String;>;
3 8 3 parameter Lorg/springframework/core/MethodParameter;
5 8 7 name Ljava/lang/String;
6 8 8 paramType Ljava/lang/Class<*>;
Signature: (Lorg/springframework/web/method/HandlerMethod;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
handlerMethod
public void updateModel(org.springframework.web.context.request.NativeWebRequest, org.springframework.web.method.support.ModelAndViewContainer);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/web/method/support/ModelAndViewContainer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.getDefaultModel:()Lorg/springframework/ui/ModelMap;
astore 3
start local 3 1: aload 2
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.getSessionStatus:()Lorg/springframework/web/bind/support/SessionStatus;
invokeinterface org.springframework.web.bind.support.SessionStatus.isComplete:()Z
ifeq 4
2: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
aload 1
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.cleanupAttributes:(Lorg/springframework/web/context/request/WebRequest;)V
3: goto 5
4: StackMap locals: org.springframework.ui.ModelMap
StackMap stack:
aload 0
getfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
aload 1
aload 3
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.storeAttributes:(Lorg/springframework/web/context/request/WebRequest;Ljava/util/Map;)V
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.isRequestHandled:()Z
ifne 7
aload 2
invokevirtual org.springframework.web.method.support.ModelAndViewContainer.getModel:()Lorg/springframework/ui/ModelMap;
aload 3
if_acmpne 7
6: aload 0
aload 1
aload 3
invokevirtual org.springframework.web.method.annotation.ModelFactory.updateBindingResult:(Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/ui/ModelMap;)V
7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 8 1 request Lorg/springframework/web/context/request/NativeWebRequest;
0 8 2 container Lorg/springframework/web/method/support/ModelAndViewContainer;
1 8 3 defaultModel Lorg/springframework/ui/ModelMap;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request
container
private void updateBindingResult(org.springframework.web.context.request.NativeWebRequest, org.springframework.ui.ModelMap);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/ui/ModelMap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
aload 2
invokevirtual org.springframework.ui.ModelMap.keySet:()Ljava/util/Set;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 3
start local 3 1: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: org.springframework.web.method.annotation.ModelFactory org.springframework.web.context.request.NativeWebRequest org.springframework.ui.ModelMap java.util.List top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 2
aload 4
invokevirtual org.springframework.ui.ModelMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 4: aload 6
ifnull 9
aload 0
aload 4
aload 6
invokevirtual org.springframework.web.method.annotation.ModelFactory.isBindingCandidate:(Ljava/lang/String;Ljava/lang/Object;)Z
ifeq 9
5: new java.lang.StringBuilder
dup
getstatic org.springframework.validation.BindingResult.MODEL_KEY_PREFIX:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 6: aload 2
aload 7
invokevirtual org.springframework.ui.ModelMap.containsAttribute:(Ljava/lang/String;)Z
ifne 9
7: aload 0
getfield org.springframework.web.method.annotation.ModelFactory.dataBinderFactory:Lorg/springframework/web/bind/support/WebDataBinderFactory;
aload 1
aload 6
aload 4
invokeinterface org.springframework.web.bind.support.WebDataBinderFactory.createBinder:(Lorg/springframework/web/context/request/NativeWebRequest;Ljava/lang/Object;Ljava/lang/String;)Lorg/springframework/web/bind/WebDataBinder;
astore 8
start local 8 8: aload 2
aload 7
aload 8
invokevirtual org.springframework.web.bind.WebDataBinder.getBindingResult:()Lorg/springframework/validation/BindingResult;
invokevirtual org.springframework.ui.ModelMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 7 end local 6 end local 4 9: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 11 1 request Lorg/springframework/web/context/request/NativeWebRequest;
0 11 2 model Lorg/springframework/ui/ModelMap;
1 11 3 keyNames Ljava/util/List<Ljava/lang/String;>;
3 9 4 name Ljava/lang/String;
4 9 6 value Ljava/lang/Object;
6 9 7 bindingResultKey Ljava/lang/String;
8 9 8 dataBinder Lorg/springframework/web/bind/WebDataBinder;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request
model
private boolean isBindingCandidate(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic org.springframework.validation.BindingResult.MODEL_KEY_PREFIX:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.method.annotation.ModelFactory.sessionAttributesHandler:Lorg/springframework/web/method/annotation/SessionAttributesHandler;
aload 1
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.isHandlerSessionAttribute:(Ljava/lang/String;Ljava/lang/Class;)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifne 7
aload 2
instanceof java.util.Collection
ifne 7
5: aload 2
instanceof java.util.Map
ifne 7
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.springframework.beans.BeanUtils.isSimpleValueType:(Ljava/lang/Class;)Z
ifne 7
6: iconst_1
ireturn
StackMap locals:
StackMap stack:
7: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/method/annotation/ModelFactory;
0 8 1 attributeName Ljava/lang/String;
0 8 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
attributeName
value
public static java.lang.String getNameForParameter(org.springframework.core.MethodParameter);
descriptor: (Lorg/springframework/core/MethodParameter;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
ldc Lorg/springframework/web/bind/annotation/ModelAttribute;
invokevirtual org.springframework.core.MethodParameter.getParameterAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.springframework.web.bind.annotation.ModelAttribute
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.value:()Ljava/lang/String;
goto 3
StackMap locals: org.springframework.web.bind.annotation.ModelAttribute
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.lang.String
3: astore 2
start local 2 4: aload 2
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 5
aload 2
goto 6
StackMap locals: java.lang.String
StackMap stack:
5: aload 0
invokestatic org.springframework.core.Conventions.getVariableNameForParameter:(Lorg/springframework/core/MethodParameter;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
6: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 parameter Lorg/springframework/core/MethodParameter;
1 7 1 ann Lorg/springframework/web/bind/annotation/ModelAttribute;
4 7 2 name Ljava/lang/String;
MethodParameters:
Name Flags
parameter
public static java.lang.String getNameForReturnValue(java.lang.Object, org.springframework.core.MethodParameter);
descriptor: (Ljava/lang/Object;Lorg/springframework/core/MethodParameter;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc Lorg/springframework/web/bind/annotation/ModelAttribute;
invokevirtual org.springframework.core.MethodParameter.getMethodAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.springframework.web.bind.annotation.ModelAttribute
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.value:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 3
2: aload 2
invokeinterface org.springframework.web.bind.annotation.ModelAttribute.value:()Ljava/lang/String;
areturn
3: StackMap locals: org.springframework.web.bind.annotation.ModelAttribute
StackMap stack:
aload 1
invokevirtual org.springframework.core.MethodParameter.getMethod:()Ljava/lang/reflect/Method;
astore 3
start local 3 4: aload 3
ifnull 5
iconst_1
goto 6
StackMap locals: java.lang.reflect.Method
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: ldc "No handler method"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
7: aload 1
invokevirtual org.springframework.core.MethodParameter.getContainingClass:()Ljava/lang/Class;
astore 4
start local 4 8: aload 3
aload 4
invokestatic org.springframework.core.GenericTypeResolver.resolveReturnType:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/Class;
astore 5
start local 5 9: aload 3
aload 5
aload 0
invokestatic org.springframework.core.Conventions.getVariableNameForReturnType:(Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/lang/Object;)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 returnValue Ljava/lang/Object;
0 10 1 returnType Lorg/springframework/core/MethodParameter;
1 10 2 ann Lorg/springframework/web/bind/annotation/ModelAttribute;
4 10 3 method Ljava/lang/reflect/Method;
8 10 4 containingClass Ljava/lang/Class<*>;
9 10 5 resolvedType Ljava/lang/Class<*>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
returnValue
returnType
}
SourceFile: "ModelFactory.java"
NestMembers:
org.springframework.web.method.annotation.ModelFactory$ModelMethod
InnerClasses:
private ModelMethod = org.springframework.web.method.annotation.ModelFactory$ModelMethod of org.springframework.web.method.annotation.ModelFactory