public class org.springframework.http.converter.json.GsonHttpMessageConverter extends org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.converter.json.GsonHttpMessageConverter
super_class: org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
{
private com.google.gson.Gson gson;
descriptor: Lcom/google/gson/Gson;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.<init>:()V
1: aload 0
new com.google.gson.Gson
dup
invokespecial com.google.gson.Gson.<init>:()V
putfield org.springframework.http.converter.json.GsonHttpMessageConverter.gson:Lcom/google/gson/Gson;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/converter/json/GsonHttpMessageConverter;
public void <init>(com.google.gson.Gson);
descriptor: (Lcom/google/gson/Gson;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.http.converter.json.AbstractJsonHttpMessageConverter.<init>:()V
1: aload 1
ldc "A Gson instance is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.http.converter.json.GsonHttpMessageConverter.gson:Lcom/google/gson/Gson;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/json/GsonHttpMessageConverter;
0 4 1 gson Lcom/google/gson/Gson;
MethodParameters:
Name Flags
gson
public void setGson(com.google.gson.Gson);
descriptor: (Lcom/google/gson/Gson;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "A Gson instance is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.http.converter.json.GsonHttpMessageConverter.gson:Lcom/google/gson/Gson;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/converter/json/GsonHttpMessageConverter;
0 3 1 gson Lcom/google/gson/Gson;
MethodParameters:
Name Flags
gson
public com.google.gson.Gson getGson();
descriptor: ()Lcom/google/gson/Gson;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.converter.json.GsonHttpMessageConverter.gson:Lcom/google/gson/Gson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/json/GsonHttpMessageConverter;
protected java.lang.Object readInternal(java.lang.reflect.Type, java.io.Reader);
descriptor: (Ljava/lang/reflect/Type;Ljava/io/Reader;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.springframework.http.converter.json.GsonHttpMessageConverter.getGson:()Lcom/google/gson/Gson;
aload 2
aload 1
invokevirtual com.google.gson.Gson.fromJson:(Ljava/io/Reader;Ljava/lang/reflect/Type;)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/http/converter/json/GsonHttpMessageConverter;
0 1 1 resolvedType Ljava/lang/reflect/Type;
0 1 2 reader Ljava/io/Reader;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
resolvedType
reader
protected void writeInternal(java.lang.Object, java.lang.reflect.Type, java.io.Writer);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/io/Writer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof java.lang.reflect.ParameterizedType
ifeq 3
1: aload 0
invokevirtual org.springframework.http.converter.json.GsonHttpMessageConverter.getGson:()Lcom/google/gson/Gson;
aload 1
aload 2
aload 3
invokevirtual com.google.gson.Gson.toJson:(Ljava/lang/Object;Ljava/lang/reflect/Type;Ljava/lang/Appendable;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.http.converter.json.GsonHttpMessageConverter.getGson:()Lcom/google/gson/Gson;
aload 1
aload 3
invokevirtual com.google.gson.Gson.toJson:(Ljava/lang/Object;Ljava/lang/Appendable;)V
4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/converter/json/GsonHttpMessageConverter;
0 5 1 o Ljava/lang/Object;
0 5 2 type Ljava/lang/reflect/Type;
0 5 3 writer Ljava/io/Writer;
Exceptions:
throws java.lang.Exception
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
o
type
writer
}
SourceFile: "GsonHttpMessageConverter.java"