public class org.bson.codecs.jsr310.InstantCodec extends org.bson.codecs.jsr310.DateTimeBasedCodec<java.time.Instant>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.codecs.jsr310.InstantCodec
super_class: org.bson.codecs.jsr310.DateTimeBasedCodec
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.bson.codecs.jsr310.DateTimeBasedCodec.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/jsr310/InstantCodec;
public java.time.Instant decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/time/Instant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.bson.codecs.jsr310.InstantCodec.validateAndReadDateTime:(Lorg/bson/BsonReader;)J
invokestatic java.time.Instant.ofEpochMilli:(J)Ljava/time/Instant;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/jsr310/InstantCodec;
0 1 1 reader Lorg/bson/BsonReader;
0 1 2 decoderContext Lorg/bson/codecs/DecoderContext;
MethodParameters:
Name Flags
reader final
decoderContext final
public void encode(org.bson.BsonWriter, java.time.Instant, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/time/Instant;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokevirtual java.time.Instant.toEpochMilli:()J
invokeinterface org.bson.BsonWriter.writeDateTime:(J)V
1: goto 8
StackMap locals:
StackMap stack: java.lang.ArithmeticException
2: astore 4
start local 4 3: new org.bson.codecs.configuration.CodecConfigurationException
dup
ldc "Unsupported Instant value '%s' could not be converted to milliseconds: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
4: aload 2
aastore
dup
iconst_1
aload 4
invokevirtual java.lang.ArithmeticException.getMessage:()Ljava/lang/String;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
6: aload 4
7: invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bson/codecs/jsr310/InstantCodec;
0 9 1 writer Lorg/bson/BsonWriter;
0 9 2 value Ljava/time/Instant;
0 9 3 encoderContext Lorg/bson/codecs/EncoderContext;
3 8 4 e Ljava/lang/ArithmeticException;
Exception table:
from to target type
0 1 2 Class java.lang.ArithmeticException
MethodParameters:
Name Flags
writer final
value final
encoderContext final
public java.lang.Class<java.time.Instant> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/time/Instant;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/jsr310/InstantCodec;
Signature: ()Ljava/lang/Class<Ljava/time/Instant;>;
public java.lang.Object decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual org.bson.codecs.jsr310.InstantCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/time/Instant;
areturn
LocalVariableTable:
Start End Slot Name Signature
public void encode(org.bson.BsonWriter, java.lang.Object, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast java.time.Instant
aload 3
invokevirtual org.bson.codecs.jsr310.InstantCodec.encode:(Lorg/bson/BsonWriter;Ljava/time/Instant;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/bson/codecs/jsr310/DateTimeBasedCodec<Ljava/time/Instant;>;
SourceFile: "InstantCodec.java"