public class com.fasterxml.jackson.databind.ser.std.NumberSerializer extends com.fasterxml.jackson.databind.ser.std.StdScalarSerializer<java.lang.Number> implements com.fasterxml.jackson.databind.ser.ContextualSerializer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.fasterxml.jackson.databind.ser.std.NumberSerializer
super_class: com.fasterxml.jackson.databind.ser.std.StdScalarSerializer
{
public static final com.fasterxml.jackson.databind.ser.std.NumberSerializer instance;
descriptor: Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
protected static final int MAX_BIG_DECIMAL_SCALE;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 9999
protected final boolean _isInt;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$com$fasterxml$jackson$annotation$JsonFormat$Shape;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new com.fasterxml.jackson.databind.ser.std.NumberSerializer
dup
ldc Ljava/lang/Number;
invokespecial com.fasterxml.jackson.databind.ser.std.NumberSerializer.<init>:(Ljava/lang/Class;)V
putstatic com.fasterxml.jackson.databind.ser.std.NumberSerializer.instance:Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.Class<? extends java.lang.Number>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial com.fasterxml.jackson.databind.ser.std.StdScalarSerializer.<init>:(Ljava/lang/Class;Z)V
1: aload 0
aload 1
ldc Ljava/math/BigInteger;
if_acmpne 2
iconst_1
goto 3
StackMap locals: com.fasterxml.jackson.databind.ser.std.NumberSerializer java.lang.Class
StackMap stack: com.fasterxml.jackson.databind.ser.std.NumberSerializer
2: iconst_0
StackMap locals: com.fasterxml.jackson.databind.ser.std.NumberSerializer java.lang.Class
StackMap stack: com.fasterxml.jackson.databind.ser.std.NumberSerializer int
3: putfield com.fasterxml.jackson.databind.ser.std.NumberSerializer._isInt:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
0 5 1 rawType Ljava/lang/Class<+Ljava/lang/Number;>;
Signature: (Ljava/lang/Class<+Ljava/lang/Number;>;)V
MethodParameters:
Name Flags
rawType
public com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty);
descriptor: (Lcom/fasterxml/jackson/databind/SerializerProvider;Lcom/fasterxml/jackson/databind/BeanProperty;)Lcom/fasterxml/jackson/databind/JsonSerializer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 0
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.handledType:()Ljava/lang/Class;
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.findFormatOverrides:(Lcom/fasterxml/jackson/databind/SerializerProvider;Lcom/fasterxml/jackson/databind/BeanProperty;Ljava/lang/Class;)Lcom/fasterxml/jackson/annotation/JsonFormat$Value;
astore 3
start local 3 1: aload 3
ifnull 6
2: invokestatic com.fasterxml.jackson.databind.ser.std.NumberSerializer.$SWITCH_TABLE$com$fasterxml$jackson$annotation$JsonFormat$Shape:()[I
aload 3
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Value.getShape:()Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
iaload
tableswitch { // 9 - 9
9: 3
default: 6
}
3: StackMap locals: com.fasterxml.jackson.annotation.JsonFormat$Value
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.handledType:()Ljava/lang/Class;
ldc Ljava/math/BigDecimal;
if_acmpne 5
4: invokestatic com.fasterxml.jackson.databind.ser.std.NumberSerializer.bigDecimalAsStringSerializer:()Lcom/fasterxml/jackson/databind/JsonSerializer;
areturn
5: StackMap locals:
StackMap stack:
getstatic com.fasterxml.jackson.databind.ser.std.ToStringSerializer.instance:Lcom/fasterxml/jackson/databind/ser/std/ToStringSerializer;
areturn
6: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
0 7 1 prov Lcom/fasterxml/jackson/databind/SerializerProvider;
0 7 2 property Lcom/fasterxml/jackson/databind/BeanProperty;
1 7 3 format Lcom/fasterxml/jackson/annotation/JsonFormat$Value;
Exceptions:
throws com.fasterxml.jackson.databind.JsonMappingException
Signature: (Lcom/fasterxml/jackson/databind/SerializerProvider;Lcom/fasterxml/jackson/databind/BeanProperty;)Lcom/fasterxml/jackson/databind/JsonSerializer<*>;
MethodParameters:
Name Flags
prov
property
public void serialize(java.lang.Number, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider);
descriptor: (Ljava/lang/Number;Lcom/fasterxml/jackson/core/JsonGenerator;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof java.math.BigDecimal
ifeq 3
1: aload 2
aload 1
checkcast java.math.BigDecimal
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(Ljava/math/BigDecimal;)V
2: goto 19
StackMap locals:
StackMap stack:
3: aload 1
instanceof java.math.BigInteger
ifeq 6
4: aload 2
aload 1
checkcast java.math.BigInteger
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(Ljava/math/BigInteger;)V
5: goto 19
StackMap locals:
StackMap stack:
6: aload 1
instanceof java.lang.Long
ifeq 9
7: aload 2
aload 1
invokevirtual java.lang.Number.longValue:()J
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(J)V
8: goto 19
StackMap locals:
StackMap stack:
9: aload 1
instanceof java.lang.Double
ifeq 12
10: aload 2
aload 1
invokevirtual java.lang.Number.doubleValue:()D
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(D)V
11: goto 19
StackMap locals:
StackMap stack:
12: aload 1
instanceof java.lang.Float
ifeq 15
13: aload 2
aload 1
invokevirtual java.lang.Number.floatValue:()F
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(F)V
14: goto 19
StackMap locals:
StackMap stack:
15: aload 1
instanceof java.lang.Integer
ifne 16
aload 1
instanceof java.lang.Byte
ifne 16
aload 1
instanceof java.lang.Short
ifeq 18
16: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.Number.intValue:()I
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(I)V
17: goto 19
18: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(Ljava/lang/String;)V
19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
0 20 1 value Ljava/lang/Number;
0 20 2 g Lcom/fasterxml/jackson/core/JsonGenerator;
0 20 3 provider Lcom/fasterxml/jackson/databind/SerializerProvider;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
g
provider
public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type);
descriptor: (Lcom/fasterxml/jackson/databind/SerializerProvider;Ljava/lang/reflect/Type;)Lcom/fasterxml/jackson/databind/JsonNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
getfield com.fasterxml.jackson.databind.ser.std.NumberSerializer._isInt:Z
ifeq 1
ldc "integer"
goto 2
StackMap locals:
StackMap stack: com.fasterxml.jackson.databind.ser.std.NumberSerializer
1: ldc "number"
StackMap locals: com.fasterxml.jackson.databind.ser.std.NumberSerializer com.fasterxml.jackson.databind.SerializerProvider java.lang.reflect.Type
StackMap stack: com.fasterxml.jackson.databind.ser.std.NumberSerializer java.lang.String
2: iconst_1
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.createSchemaNode:(Ljava/lang/String;Z)Lcom/fasterxml/jackson/databind/node/ObjectNode;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
0 3 1 provider Lcom/fasterxml/jackson/databind/SerializerProvider;
0 3 2 typeHint Ljava/lang/reflect/Type;
MethodParameters:
Name Flags
provider
typeHint
public void acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper, com.fasterxml.jackson.databind.JavaType);
descriptor: (Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper;Lcom/fasterxml/jackson/databind/JavaType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.fasterxml.jackson.databind.ser.std.NumberSerializer._isInt:Z
ifeq 3
1: aload 0
aload 1
aload 2
getstatic com.fasterxml.jackson.core.JsonParser$NumberType.BIG_INTEGER:Lcom/fasterxml/jackson/core/JsonParser$NumberType;
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.visitIntFormat:(Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper;Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/core/JsonParser$NumberType;)V
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.handledType:()Ljava/lang/Class;
ldc Ljava/math/BigDecimal;
if_acmpne 6
4: aload 0
aload 1
aload 2
getstatic com.fasterxml.jackson.core.JsonParser$NumberType.BIG_DECIMAL:Lcom/fasterxml/jackson/core/JsonParser$NumberType;
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.visitFloatFormat:(Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper;Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/core/JsonParser$NumberType;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper.expectNumberFormat:(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor;
pop
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer;
0 8 1 visitor Lcom/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper;
0 8 2 typeHint Lcom/fasterxml/jackson/databind/JavaType;
Exceptions:
throws com.fasterxml.jackson.databind.JsonMappingException
MethodParameters:
Name Flags
visitor
typeHint
public static com.fasterxml.jackson.databind.JsonSerializer<?> bigDecimalAsStringSerializer();
descriptor: ()Lcom/fasterxml/jackson/databind/JsonSerializer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.fasterxml.jackson.databind.ser.std.NumberSerializer$BigDecimalAsStringSerializer.BD_INSTANCE:Lcom/fasterxml/jackson/databind/ser/std/NumberSerializer$BigDecimalAsStringSerializer;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Lcom/fasterxml/jackson/databind/JsonSerializer<*>;
public void serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider);
descriptor: (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
checkcast java.lang.Number
aload 2
aload 3
invokevirtual com.fasterxml.jackson.databind.ser.std.NumberSerializer.serialize:(Ljava/lang/Number;Lcom/fasterxml/jackson/core/JsonGenerator;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
static int[] $SWITCH_TABLE$com$fasterxml$jackson$annotation$JsonFormat$Shape();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic com.fasterxml.jackson.databind.ser.std.NumberSerializer.$SWITCH_TABLE$com$fasterxml$jackson$annotation$JsonFormat$Shape:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic com.fasterxml.jackson.annotation.JsonFormat$Shape.values:()[Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
arraylength
newarray 10
astore 0
2: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.ANY:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.ARRAY:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
iconst_4
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.BINARY:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
bipush 11
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.BOOLEAN:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
bipush 10
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.NATURAL:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
iconst_2
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.NUMBER:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
bipush 6
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.NUMBER_FLOAT:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
bipush 7
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.NUMBER_INT:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
bipush 8
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.OBJECT:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
iconst_5
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.SCALAR:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
iconst_3
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic com.fasterxml.jackson.annotation.JsonFormat$Shape.STRING:Lcom/fasterxml/jackson/annotation/JsonFormat$Shape;
invokevirtual com.fasterxml.jackson.annotation.JsonFormat$Shape.ordinal:()I
bipush 9
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
dup
putstatic com.fasterxml.jackson.databind.ser.std.NumberSerializer.$SWITCH_TABLE$com$fasterxml$jackson$annotation$JsonFormat$Shape:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
}
Signature: Lcom/fasterxml/jackson/databind/ser/std/StdScalarSerializer<Ljava/lang/Number;>;Lcom/fasterxml/jackson/databind/ser/ContextualSerializer;
SourceFile: "NumberSerializer.java"
NestMembers:
com.fasterxml.jackson.databind.ser.std.NumberSerializer$BigDecimalAsStringSerializer
InnerClasses:
public final Shape = com.fasterxml.jackson.annotation.JsonFormat$Shape of com.fasterxml.jackson.annotation.JsonFormat
public Value = com.fasterxml.jackson.annotation.JsonFormat$Value of com.fasterxml.jackson.annotation.JsonFormat
public final NumberType = com.fasterxml.jackson.core.JsonParser$NumberType of com.fasterxml.jackson.core.JsonParser
final BigDecimalAsStringSerializer = com.fasterxml.jackson.databind.ser.std.NumberSerializer$BigDecimalAsStringSerializer of com.fasterxml.jackson.databind.ser.std.NumberSerializer
RuntimeVisibleAnnotations:
com.fasterxml.jackson.databind.annotation.JacksonStdImpl()