class org.bson.internal.LazyCodec<T> implements org.bson.codecs.Codec<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bson.internal.LazyCodec
super_class: java.lang.Object
{
private final org.bson.codecs.configuration.CodecRegistry registry;
descriptor: Lorg/bson/codecs/configuration/CodecRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<T> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TT;>;
private volatile org.bson.codecs.Codec<T> wrapped;
descriptor: Lorg/bson/codecs/Codec;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Lorg/bson/codecs/Codec<TT;>;
void <init>(org.bson.codecs.configuration.CodecRegistry, java.lang.Class<T>);
descriptor: (Lorg/bson/codecs/configuration/CodecRegistry;Ljava/lang/Class;)V
flags: (0x0000)
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 1
putfield org.bson.internal.LazyCodec.registry:Lorg/bson/codecs/configuration/CodecRegistry;
2: aload 0
aload 2
putfield org.bson.internal.LazyCodec.clazz:Ljava/lang/Class;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/internal/LazyCodec<TT;>;
0 4 1 registry Lorg/bson/codecs/configuration/CodecRegistry;
0 4 2 clazz Ljava/lang/Class<TT;>;
Signature: (Lorg/bson/codecs/configuration/CodecRegistry;Ljava/lang/Class<TT;>;)V
MethodParameters:
Name Flags
registry final
clazz final
public void encode(org.bson.BsonWriter, T, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.bson.internal.LazyCodec.getWrapped:()Lorg/bson/codecs/Codec;
aload 1
aload 2
aload 3
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/internal/LazyCodec<TT;>;
0 2 1 writer Lorg/bson/BsonWriter;
0 2 2 value TT;
0 2 3 encoderContext Lorg/bson/codecs/EncoderContext;
Signature: (Lorg/bson/BsonWriter;TT;Lorg/bson/codecs/EncoderContext;)V
MethodParameters:
Name Flags
writer final
value final
encoderContext final
public java.lang.Class<T> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.internal.LazyCodec.clazz:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/internal/LazyCodec<TT;>;
Signature: ()Ljava/lang/Class<TT;>;
public T decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.bson.internal.LazyCodec.getWrapped:()Lorg/bson/codecs/Codec;
aload 1
aload 2
invokeinterface org.bson.codecs.Codec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/internal/LazyCodec<TT;>;
0 1 1 reader Lorg/bson/BsonReader;
0 1 2 decoderContext Lorg/bson/codecs/DecoderContext;
Signature: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)TT;
MethodParameters:
Name Flags
reader final
decoderContext final
private org.bson.codecs.Codec<T> getWrapped();
descriptor: ()Lorg/bson/codecs/Codec;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.internal.LazyCodec.wrapped:Lorg/bson/codecs/Codec;
ifnonnull 2
1: aload 0
aload 0
getfield org.bson.internal.LazyCodec.registry:Lorg/bson/codecs/configuration/CodecRegistry;
aload 0
getfield org.bson.internal.LazyCodec.clazz:Ljava/lang/Class;
invokeinterface org.bson.codecs.configuration.CodecRegistry.get:(Ljava/lang/Class;)Lorg/bson/codecs/Codec;
putfield org.bson.internal.LazyCodec.wrapped:Lorg/bson/codecs/Codec;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.internal.LazyCodec.wrapped:Lorg/bson/codecs/Codec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/internal/LazyCodec<TT;>;
Signature: ()Lorg/bson/codecs/Codec<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/bson/codecs/Codec<TT;>;
SourceFile: "LazyCodec.java"