final class org.bson.codecs.configuration.CodecCache
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.bson.codecs.configuration.CodecCache
super_class: java.lang.Object
{
private final java.util.concurrent.ConcurrentMap<java.lang.Class<?>, org.bson.codecs.configuration.Optional<? extends org.bson.codecs.Codec<?>>> codecCache;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<*>;Lorg/bson/codecs/configuration/Optional<+Lorg/bson/codecs/Codec<*>;>;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/codecs/configuration/CodecCache;
public boolean containsKey(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/configuration/CodecCache;
0 1 1 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz final
public void put(java.lang.Class<?>, org.bson.codecs.Codec<?>);
descriptor: (Ljava/lang/Class;Lorg/bson/codecs/Codec;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 2
invokestatic org.bson.codecs.configuration.Optional.of:(Ljava/lang/Object;)Lorg/bson/codecs/configuration/Optional;
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/codecs/configuration/CodecCache;
0 2 1 clazz Ljava/lang/Class<*>;
0 2 2 codec Lorg/bson/codecs/Codec<*>;
Signature: (Ljava/lang/Class<*>;Lorg/bson/codecs/Codec<*>;)V
MethodParameters:
Name Flags
clazz final
codec final
public <T> org.bson.codecs.Codec<T> getOrThrow(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lorg/bson/codecs/Codec;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
ifeq 4
1: aload 0
getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.codecs.configuration.Optional
astore 2
start local 2 2: aload 2
invokevirtual org.bson.codecs.configuration.Optional.isEmpty:()Z
ifne 4
3: aload 2
invokevirtual org.bson.codecs.configuration.Optional.get:()Ljava/lang/Object;
checkcast org.bson.codecs.Codec
areturn
end local 2 4: StackMap locals:
StackMap stack:
new org.bson.codecs.configuration.CodecConfigurationException
dup
ldc "Can't find a codec for %s."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/codecs/configuration/CodecCache;
0 5 1 clazz Ljava/lang/Class<TT;>;
2 4 2 optionalCodec Lorg/bson/codecs/configuration/Optional<+Lorg/bson/codecs/Codec<*>;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Lorg/bson/codecs/Codec<TT;>;
MethodParameters:
Name Flags
clazz final
}
SourceFile: "CodecCache.java"