public class org.springframework.web.method.annotation.SessionAttributesHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.method.annotation.SessionAttributesHandler
super_class: java.lang.Object
{
private final java.util.Set<java.lang.String> attributeNames;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final java.util.Set<java.lang.Class<?>> attributeTypes;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Class<*>;>;
private final java.util.Set<java.lang.String> knownAttributeNames;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final org.springframework.web.bind.support.SessionAttributeStore sessionAttributeStore;
descriptor: Lorg/springframework/web/bind/support/SessionAttributeStore;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class<?>, org.springframework.web.bind.support.SessionAttributeStore);
descriptor: (Ljava/lang/Class;Lorg/springframework/web/bind/support/SessionAttributeStore;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeNames:Ljava/util/Set;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeTypes:Ljava/util/Set;
3: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
iconst_4
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
invokestatic java.util.Collections.newSetFromMap:(Ljava/util/Map;)Ljava/util/Set;
putfield org.springframework.web.method.annotation.SessionAttributesHandler.knownAttributeNames:Ljava/util/Set;
4: aload 2
ldc "SessionAttributeStore may not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
5: aload 0
aload 2
putfield org.springframework.web.method.annotation.SessionAttributesHandler.sessionAttributeStore:Lorg/springframework/web/bind/support/SessionAttributeStore;
6: aload 1
ldc Lorg/springframework/web/bind/annotation/SessionAttributes;
invokestatic org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotation:(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.springframework.web.bind.annotation.SessionAttributes
astore 3
start local 3 7: aload 3
ifnull 10
8: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeNames:Ljava/util/Set;
aload 3
invokeinterface org.springframework.web.bind.annotation.SessionAttributes.names:()[Ljava/lang/String;
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
9: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeTypes:Ljava/util/Set;
aload 3
invokeinterface org.springframework.web.bind.annotation.SessionAttributes.types:()[Ljava/lang/Class;
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
10: StackMap locals: org.springframework.web.method.annotation.SessionAttributesHandler java.lang.Class org.springframework.web.bind.support.SessionAttributeStore org.springframework.web.bind.annotation.SessionAttributes
StackMap stack:
aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.knownAttributeNames:Ljava/util/Set;
aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeNames:Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
11: return
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/SessionAttributesHandler;
0 12 1 handlerType Ljava/lang/Class<*>;
0 12 2 sessionAttributeStore Lorg/springframework/web/bind/support/SessionAttributeStore;
7 12 3 ann Lorg/springframework/web/bind/annotation/SessionAttributes;
Signature: (Ljava/lang/Class<*>;Lorg/springframework/web/bind/support/SessionAttributeStore;)V
MethodParameters:
Name Flags
handlerType
sessionAttributeStore
public boolean hasSessionAttributes();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeNames:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 1
aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeTypes:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
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 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
public boolean isHandlerSessionAttribute(java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "Attribute name must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeNames:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 2
aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.attributeTypes:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.knownAttributeNames:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
0 5 1 attributeName Ljava/lang/String;
0 5 2 attributeType Ljava/lang/Class<*>;
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
attributeName
attributeType
public void storeAttributes(org.springframework.web.context.request.WebRequest, java.util.Map<java.lang.String, ?>);
descriptor: (Lorg/springframework/web/context/request/WebRequest;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
aload 1
invokedynamic accept(Lorg/springframework/web/method/annotation/SessionAttributesHandler;Lorg/springframework/web/context/request/WebRequest;)Ljava/util/function/BiConsumer;
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;)V
org/springframework/web/method/annotation/SessionAttributesHandler.lambda$0(Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;Ljava/lang/Object;)V (7)
(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
0 2 1 request Lorg/springframework/web/context/request/WebRequest;
0 2 2 attributes Ljava/util/Map<Ljava/lang/String;*>;
Signature: (Lorg/springframework/web/context/request/WebRequest;Ljava/util/Map<Ljava/lang/String;*>;)V
MethodParameters:
Name Flags
request
attributes
public java.util.Map<java.lang.String, java.lang.Object> retrieveAttributes(org.springframework.web.context.request.WebRequest);
descriptor: (Lorg/springframework/web/context/request/WebRequest;)Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.knownAttributeNames:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: org.springframework.web.method.annotation.SessionAttributesHandler org.springframework.web.context.request.WebRequest java.util.Map top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.sessionAttributeStore:Lorg/springframework/web/bind/support/SessionAttributeStore;
aload 1
aload 3
invokeinterface org.springframework.web.bind.support.SessionAttributeStore.retrieveAttribute:(Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;)Ljava/lang/Object;
astore 5
start local 5 4: aload 5
ifnull 6
5: aload 2
aload 3
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
0 8 1 request Lorg/springframework/web/context/request/WebRequest;
1 8 2 attributes Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
3 6 3 name Ljava/lang/String;
4 6 5 value Ljava/lang/Object;
Signature: (Lorg/springframework/web/context/request/WebRequest;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
MethodParameters:
Name Flags
request
public void cleanupAttributes(org.springframework.web.context.request.WebRequest);
descriptor: (Lorg/springframework/web/context/request/WebRequest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.knownAttributeNames:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.springframework.web.method.annotation.SessionAttributesHandler org.springframework.web.context.request.WebRequest top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.sessionAttributeStore:Lorg/springframework/web/bind/support/SessionAttributeStore;
aload 1
aload 2
invokeinterface org.springframework.web.bind.support.SessionAttributeStore.cleanupAttribute:(Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
0 5 1 request Lorg/springframework/web/context/request/WebRequest;
2 3 2 attributeName Ljava/lang/String;
MethodParameters:
Name Flags
request
java.lang.Object retrieveAttribute(org.springframework.web.context.request.WebRequest, java.lang.String);
descriptor: (Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.sessionAttributeStore:Lorg/springframework/web/bind/support/SessionAttributeStore;
aload 1
aload 2
invokeinterface org.springframework.web.bind.support.SessionAttributeStore.retrieveAttribute:(Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
0 1 1 request Lorg/springframework/web/context/request/WebRequest;
0 1 2 attributeName Ljava/lang/String;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
request
attributeName
private void lambda$0(org.springframework.web.context.request.WebRequest, java.lang.String, java.lang.Object);
descriptor: (Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 2 start local 3 0: aload 3
ifnull 2
aload 0
aload 2
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual org.springframework.web.method.annotation.SessionAttributesHandler.isHandlerSessionAttribute:(Ljava/lang/String;Ljava/lang/Class;)Z
ifeq 2
1: aload 0
getfield org.springframework.web.method.annotation.SessionAttributesHandler.sessionAttributeStore:Lorg/springframework/web/bind/support/SessionAttributeStore;
aload 1
aload 2
aload 3
invokeinterface org.springframework.web.bind.support.SessionAttributeStore.storeAttribute:(Lorg/springframework/web/context/request/WebRequest;Ljava/lang/String;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/method/annotation/SessionAttributesHandler;
0 3 2 name Ljava/lang/String;
0 3 3 value Ljava/lang/Object;
}
SourceFile: "SessionAttributesHandler.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles