public abstract class org.springframework.http.codec.json.Jackson2CodecSupport
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.http.codec.json.Jackson2CodecSupport
super_class: java.lang.Object
{
public static final java.lang.String JSON_VIEW_HINT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.lang.String JSON_VIEW_HINT_ERROR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "@JsonView only supported for write hints with exactly 1 class argument: "
private static final java.util.List<org.springframework.util.MimeType> DEFAULT_MIME_TYPES;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/util/MimeType;>;
protected final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper;
descriptor: Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<org.springframework.util.MimeType> mimeTypes;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/util/MimeType;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc Lorg/springframework/http/codec/json/Jackson2CodecSupport;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".jsonView"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic org.springframework.http.codec.json.Jackson2CodecSupport.JSON_VIEW_HINT:Ljava/lang/String;
1: iconst_2
anewarray org.springframework.util.MimeType
dup
iconst_0
2: new org.springframework.util.MimeType
dup
ldc "application"
ldc "json"
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial org.springframework.util.MimeType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;)V
aastore
dup
iconst_1
3: new org.springframework.util.MimeType
dup
ldc "application"
ldc "*+json"
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial org.springframework.util.MimeType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;)V
aastore
4: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
5: invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic org.springframework.http.codec.json.Jackson2CodecSupport.DEFAULT_MIME_TYPES:Ljava/util/List;
6: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(com.fasterxml.jackson.databind.ObjectMapper, org.springframework.util.MimeType[]);
descriptor: (Lcom/fasterxml/jackson/databind/ObjectMapper;[Lorg/springframework/util/MimeType;)V
flags: (0x0084) ACC_PROTECTED, ACC_VARARGS
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.springframework.http.HttpLogging.forLogName:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.springframework.http.codec.json.Jackson2CodecSupport.logger:Lorg/apache/commons/logging/Log;
2: aload 1
ldc "ObjectMapper must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 1
putfield org.springframework.http.codec.json.Jackson2CodecSupport.objectMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
4: aload 0
aload 2
invokestatic org.springframework.util.ObjectUtils.isEmpty:([Ljava/lang/Object;)Z
ifne 6
5: aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
goto 7
StackMap locals: org.springframework.http.codec.json.Jackson2CodecSupport com.fasterxml.jackson.databind.ObjectMapper org.springframework.util.MimeType[]
StackMap stack: org.springframework.http.codec.json.Jackson2CodecSupport
6: getstatic org.springframework.http.codec.json.Jackson2CodecSupport.DEFAULT_MIME_TYPES:Ljava/util/List;
7: StackMap locals: org.springframework.http.codec.json.Jackson2CodecSupport com.fasterxml.jackson.databind.ObjectMapper org.springframework.util.MimeType[]
StackMap stack: org.springframework.http.codec.json.Jackson2CodecSupport java.util.List
putfield org.springframework.http.codec.json.Jackson2CodecSupport.mimeTypes:Ljava/util/List;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
0 9 1 objectMapper Lcom/fasterxml/jackson/databind/ObjectMapper;
0 9 2 mimeTypes [Lorg/springframework/util/MimeType;
MethodParameters:
Name Flags
objectMapper
mimeTypes
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper();
descriptor: ()Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.codec.json.Jackson2CodecSupport.objectMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
protected java.util.List<org.springframework.util.MimeType> getMimeTypes();
descriptor: ()Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.codec.json.Jackson2CodecSupport.mimeTypes:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
Signature: ()Ljava/util/List<Lorg/springframework/util/MimeType;>;
protected boolean supportsMimeType(org.springframework.util.MimeType);
descriptor: (Lorg/springframework/util/MimeType;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield org.springframework.http.codec.json.Jackson2CodecSupport.mimeTypes:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
aload 1
invokedynamic test(Lorg/springframework/util/MimeType;)Ljava/util/function/Predicate;
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;)Z
org/springframework/http/codec/json/Jackson2CodecSupport.lambda$0(Lorg/springframework/util/MimeType;Lorg/springframework/util/MimeType;)Z (6)
(Lorg/springframework/util/MimeType;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
0 2 1 mimeType Lorg/springframework/util/MimeType;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
mimeType
protected com.fasterxml.jackson.databind.JavaType getJavaType(java.lang.reflect.Type, java.lang.Class<?>);
descriptor: (Ljava/lang/reflect/Type;Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/JavaType;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.codec.json.Jackson2CodecSupport.objectMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.getTypeFactory:()Lcom/fasterxml/jackson/databind/type/TypeFactory;
astore 3
start local 3 1: aload 3
aload 1
aload 2
invokestatic org.springframework.core.GenericTypeResolver.resolveType:(Ljava/lang/reflect/Type;Ljava/lang/Class;)Ljava/lang/reflect/Type;
invokevirtual com.fasterxml.jackson.databind.type.TypeFactory.constructType:(Ljava/lang/reflect/Type;)Lcom/fasterxml/jackson/databind/JavaType;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
0 2 1 type Ljava/lang/reflect/Type;
0 2 2 contextClass Ljava/lang/Class<*>;
1 2 3 typeFactory Lcom/fasterxml/jackson/databind/type/TypeFactory;
Signature: (Ljava/lang/reflect/Type;Ljava/lang/Class<*>;)Lcom/fasterxml/jackson/databind/JavaType;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
type
contextClass
protected java.util.Map<java.lang.String, java.lang.Object> getHints(org.springframework.core.ResolvableType);
descriptor: (Lorg/springframework/core/ResolvableType;)Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.http.codec.json.Jackson2CodecSupport.getParameter:(Lorg/springframework/core/ResolvableType;)Lorg/springframework/core/MethodParameter;
astore 2
start local 2 1: aload 2
ifnull 9
2: aload 0
aload 2
ldc Lcom/fasterxml/jackson/annotation/JsonView;
invokevirtual org.springframework.http.codec.json.Jackson2CodecSupport.getAnnotation:(Lorg/springframework/core/MethodParameter;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast com.fasterxml.jackson.annotation.JsonView
astore 3
start local 3 3: aload 3
ifnull 9
4: aload 3
invokeinterface com.fasterxml.jackson.annotation.JsonView.value:()[Ljava/lang/Class;
astore 4
start local 4 5: aload 4
arraylength
iconst_1
if_icmpne 6
iconst_1
goto 7
StackMap locals: org.springframework.core.MethodParameter com.fasterxml.jackson.annotation.JsonView java.lang.Class[]
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: new java.lang.StringBuilder
dup
ldc "@JsonView only supported for write hints with exactly 1 class argument: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
8: getstatic org.springframework.http.codec.json.Jackson2CodecSupport.JSON_VIEW_HINT:Ljava/lang/String;
aload 4
iconst_0
aaload
invokestatic org.springframework.core.codec.Hints.from:(Ljava/lang/String;Ljava/lang/Object;)Ljava/util/Map;
areturn
end local 4 end local 3 9: StackMap locals:
StackMap stack:
invokestatic org.springframework.core.codec.Hints.none:()Ljava/util/Map;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
0 10 1 resolvableType Lorg/springframework/core/ResolvableType;
1 10 2 param Lorg/springframework/core/MethodParameter;
3 9 3 annotation Lcom/fasterxml/jackson/annotation/JsonView;
5 9 4 classes [Ljava/lang/Class;
Signature: (Lorg/springframework/core/ResolvableType;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
MethodParameters:
Name Flags
resolvableType
protected org.springframework.core.MethodParameter getParameter(org.springframework.core.ResolvableType);
descriptor: (Lorg/springframework/core/ResolvableType;)Lorg/springframework/core/MethodParameter;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.springframework.core.ResolvableType.getSource:()Ljava/lang/Object;
instanceof org.springframework.core.MethodParameter
ifeq 1
aload 1
invokevirtual org.springframework.core.ResolvableType.getSource:()Ljava/lang/Object;
checkcast org.springframework.core.MethodParameter
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: org.springframework.core.MethodParameter
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/codec/json/Jackson2CodecSupport;
0 3 1 type Lorg/springframework/core/ResolvableType;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
type
protected abstract <A extends java.lang.annotation.Annotation> A getAnnotation(org.springframework.core.MethodParameter, java.lang.Class<A>);
descriptor: (Lorg/springframework/core/MethodParameter;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: <A::Ljava/lang/annotation/Annotation;>(Lorg/springframework/core/MethodParameter;Ljava/lang/Class<TA;>;)TA;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
parameter
annotType
private static boolean lambda$0(org.springframework.util.MimeType, org.springframework.util.MimeType);
descriptor: (Lorg/springframework/util/MimeType;Lorg/springframework/util/MimeType;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual org.springframework.util.MimeType.isCompatibleWith:(Lorg/springframework/util/MimeType;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 m Lorg/springframework/util/MimeType;
}
SourceFile: "Jackson2CodecSupport.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles