public class org.bson.codecs.jsr310.LocalDateTimeCodec extends org.bson.codecs.jsr310.DateTimeBasedCodec<java.time.LocalDateTime>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.codecs.jsr310.LocalDateTimeCodec
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/LocalDateTimeCodec;
public java.time.LocalDateTime decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/time/LocalDateTime;
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.LocalDateTimeCodec.validateAndReadDateTime:(Lorg/bson/BsonReader;)J
invokestatic java.time.Instant.ofEpochMilli:(J)Ljava/time/Instant;
getstatic java.time.ZoneOffset.UTC:Ljava/time/ZoneOffset;
invokevirtual java.time.Instant.atZone:(Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;
invokevirtual java.time.ZonedDateTime.toLocalDateTime:()Ljava/time/LocalDateTime;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/jsr310/LocalDateTimeCodec;
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.LocalDateTime, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/time/LocalDateTime;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
getstatic java.time.ZoneOffset.UTC:Ljava/time/ZoneOffset;
invokevirtual java.time.LocalDateTime.toInstant:(Ljava/time/ZoneOffset;)Ljava/time/Instant;
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 LocalDateTime 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/LocalDateTimeCodec;
0 9 1 writer Lorg/bson/BsonWriter;
0 9 2 value Ljava/time/LocalDateTime;
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.LocalDateTime> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/time/LocalDateTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/jsr310/LocalDateTimeCodec;
Signature: ()Ljava/lang/Class<Ljava/time/LocalDateTime;>;
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.LocalDateTimeCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/time/LocalDateTime;
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.LocalDateTime
aload 3
invokevirtual org.bson.codecs.jsr310.LocalDateTimeCodec.encode:(Lorg/bson/BsonWriter;Ljava/time/LocalDateTime;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/bson/codecs/jsr310/DateTimeBasedCodec<Ljava/time/LocalDateTime;>;
SourceFile: "LocalDateTimeCodec.java"