class org.bson.codecs.pojo.EnumPropertyCodecProvider$EnumCodec<T extends java.lang.Enum<T>> implements org.bson.codecs.Codec<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bson.codecs.pojo.EnumPropertyCodecProvider$EnumCodec
super_class: java.lang.Object
{
private final java.lang.Class<T> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TT;>;
void <init>(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bson.codecs.pojo.EnumPropertyCodecProvider$EnumCodec.clazz:Ljava/lang/Class;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/codecs/pojo/EnumPropertyCodecProvider$EnumCodec<TT;>;
0 3 1 clazz Ljava/lang/Class<TT;>;
Signature: (Ljava/lang/Class<TT;>;)V
MethodParameters:
Name Flags
clazz final
public void encode(org.bson.BsonWriter, T, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/lang/Enum;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
invokeinterface org.bson.BsonWriter.writeString:(Ljava/lang/String;)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/codecs/pojo/EnumPropertyCodecProvider$EnumCodec<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.codecs.pojo.EnumPropertyCodecProvider$EnumCodec.clazz:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/pojo/EnumPropertyCodecProvider$EnumCodec<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/Enum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bson.codecs.pojo.EnumPropertyCodecProvider$EnumCodec.clazz:Ljava/lang/Class;
aload 1
invokeinterface org.bson.BsonReader.readString:()Ljava/lang/String;
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/pojo/EnumPropertyCodecProvider$EnumCodec<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
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.pojo.EnumPropertyCodecProvider$EnumCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Enum;
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.lang.Enum
aload 3
invokevirtual org.bson.codecs.pojo.EnumPropertyCodecProvider$EnumCodec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Enum;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Enum<TT;>;>Ljava/lang/Object;Lorg/bson/codecs/Codec<TT;>;
SourceFile: "EnumPropertyCodecProvider.java"
NestHost: org.bson.codecs.pojo.EnumPropertyCodecProvider
InnerClasses:
private EnumCodec = org.bson.codecs.pojo.EnumPropertyCodecProvider$EnumCodec of org.bson.codecs.pojo.EnumPropertyCodecProvider