final class org.bson.codecs.pojo.InstanceCreatorImpl<T> implements org.bson.codecs.pojo.InstanceCreator<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.bson.codecs.pojo.InstanceCreatorImpl
super_class: java.lang.Object
{
private final org.bson.codecs.pojo.CreatorExecutable<T> creatorExecutable;
descriptor: Lorg/bson/codecs/pojo/CreatorExecutable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/bson/codecs/pojo/CreatorExecutable<TT;>;
private final java.util.Map<org.bson.codecs.pojo.PropertyModel<?>, java.lang.Object> cachedValues;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/bson/codecs/pojo/PropertyModel<*>;Ljava/lang/Object;>;
private final java.util.Map<java.lang.String, java.lang.Integer> properties;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private final java.lang.Object[] params;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private T newInstance;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TT;
void <init>(org.bson.codecs.pojo.CreatorExecutable<T>);
descriptor: (Lorg/bson/codecs/pojo/CreatorExecutable;)V
flags: (0x0000)
Code:
stack=3, locals=3, 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.InstanceCreatorImpl.creatorExecutable:Lorg/bson/codecs/pojo/CreatorExecutable;
2: aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getProperties:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 8
3: aload 0
aconst_null
putfield org.bson.codecs.pojo.InstanceCreatorImpl.cachedValues:Ljava/util/Map;
4: aload 0
aconst_null
putfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
5: aload 0
aconst_null
putfield org.bson.codecs.pojo.InstanceCreatorImpl.params:[Ljava/lang/Object;
6: aload 0
aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getInstance:()Ljava/lang/Object;
putfield org.bson.codecs.pojo.InstanceCreatorImpl.newInstance:Ljava/lang/Object;
7: goto 19
8: StackMap locals: org.bson.codecs.pojo.InstanceCreatorImpl org.bson.codecs.pojo.CreatorExecutable
StackMap stack:
aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.bson.codecs.pojo.InstanceCreatorImpl.cachedValues:Ljava/util/Map;
9: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
10: iconst_0
istore 2
start local 2 11: goto 17
12: StackMap locals: int
StackMap stack:
aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getIdPropertyIndex:()Ljava/lang/Integer;
ifnull 15
aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getIdPropertyIndex:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iload 2
if_icmpne 15
13: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
ldc "_id"
aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getIdPropertyIndex:()Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getProperties:()Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.bson.codecs.pojo.annotations.BsonProperty
invokeinterface org.bson.codecs.pojo.annotations.BsonProperty.value:()Ljava/lang/String;
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
17: iload 2
aload 1
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getProperties:()Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 12
end local 2 18: aload 0
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
anewarray java.lang.Object
putfield org.bson.codecs.pojo.InstanceCreatorImpl.params:[Ljava/lang/Object;
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/bson/codecs/pojo/InstanceCreatorImpl<TT;>;
0 20 1 creatorExecutable Lorg/bson/codecs/pojo/CreatorExecutable<TT;>;
11 18 2 i I
Signature: (Lorg/bson/codecs/pojo/CreatorExecutable<TT;>;)V
MethodParameters:
Name Flags
creatorExecutable final
public <S> void set(S, org.bson.codecs.pojo.PropertyModel<S>);
descriptor: (Ljava/lang/Object;Lorg/bson/codecs/pojo/PropertyModel;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.newInstance:Ljava/lang/Object;
ifnull 3
1: aload 2
invokevirtual org.bson.codecs.pojo.PropertyModel.getPropertyAccessor:()Lorg/bson/codecs/pojo/PropertyAccessor;
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.newInstance:Ljava/lang/Object;
aload 1
invokeinterface org.bson.codecs.pojo.PropertyAccessor.set:(Ljava/lang/Object;Ljava/lang/Object;)V
2: goto 15
3: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 11
4: aload 2
invokevirtual org.bson.codecs.pojo.PropertyModel.getWriteName:()Ljava/lang/String;
astore 3
start local 3 5: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 7
6: aload 2
invokevirtual org.bson.codecs.pojo.PropertyModel.getName:()Ljava/lang/String;
astore 3
7: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 4
start local 4 8: aload 4
ifnull 10
9: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.params:[Ljava/lang/Object;
aload 4
invokevirtual java.lang.Integer.intValue:()I
aload 1
aastore
10: StackMap locals: java.lang.Integer
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 14
12: aload 0
invokevirtual org.bson.codecs.pojo.InstanceCreatorImpl.constructInstanceAndProcessCachedValues:()V
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.cachedValues:Ljava/util/Map;
aload 2
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/bson/codecs/pojo/InstanceCreatorImpl<TT;>;
0 16 1 value TS;
0 16 2 propertyModel Lorg/bson/codecs/pojo/PropertyModel<TS;>;
5 11 3 propertyName Ljava/lang/String;
8 11 4 index Ljava/lang/Integer;
Signature: <S:Ljava/lang/Object;>(TS;Lorg/bson/codecs/pojo/PropertyModel<TS;>;)V
MethodParameters:
Name Flags
value final
propertyModel final
public T getInstance();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.newInstance:Ljava/lang/Object;
ifnonnull 13
1: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: org.bson.codecs.pojo.InstanceCreatorImpl top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 1
start local 1 3: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.params:[Ljava/lang/Object;
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
aconst_null
aastore
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
invokevirtual org.bson.codecs.pojo.InstanceCreatorImpl.constructInstanceAndProcessCachedValues:()V
6: goto 13
StackMap locals: org.bson.codecs.pojo.InstanceCreatorImpl
StackMap stack: org.bson.codecs.configuration.CodecConfigurationException
7: astore 1
start local 1 8: new org.bson.codecs.configuration.CodecConfigurationException
dup
ldc "Could not construct new instance of: %s. Missing the following properties: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
9: aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.creatorExecutable:Lorg/bson/codecs/pojo/CreatorExecutable;
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.properties:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
aastore
10: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
11: aload 1
12: invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 13: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.newInstance:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/bson/codecs/pojo/InstanceCreatorImpl<TT;>;
3 4 1 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Integer;>;
8 13 1 e Lorg/bson/codecs/configuration/CodecConfigurationException;
Exception table:
from to target type
1 6 7 Class org.bson.codecs.configuration.CodecConfigurationException
Signature: ()TT;
private void constructInstanceAndProcessCachedValues();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.creatorExecutable:Lorg/bson/codecs/pojo/CreatorExecutable;
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.params:[Ljava/lang/Object;
invokevirtual org.bson.codecs.pojo.CreatorExecutable.getInstance:([Ljava/lang/Object;)Ljava/lang/Object;
putfield org.bson.codecs.pojo.InstanceCreatorImpl.newInstance:Ljava/lang/Object;
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 1
start local 1 3: new org.bson.codecs.configuration.CodecConfigurationException
dup
aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 1
invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.codecs.pojo.InstanceCreatorImpl.cachedValues:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 7
StackMap locals: org.bson.codecs.pojo.InstanceCreatorImpl top java.util.Iterator
StackMap stack:
5: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 1
start local 1 6: aload 0
aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.bson.codecs.pojo.PropertyModel
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual org.bson.codecs.pojo.InstanceCreatorImpl.setPropertyValue:(Lorg/bson/codecs/pojo/PropertyModel;Ljava/lang/Object;)V
end local 1 7: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bson/codecs/pojo/InstanceCreatorImpl<TT;>;
3 4 1 e Ljava/lang/Exception;
6 7 1 entry Ljava/util/Map$Entry<Lorg/bson/codecs/pojo/PropertyModel<*>;Ljava/lang/Object;>;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
private <S> void setPropertyValue(org.bson.codecs.pojo.PropertyModel<S>, );
descriptor: (Lorg/bson/codecs/pojo/PropertyModel;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
aload 1
invokevirtual org.bson.codecs.pojo.InstanceCreatorImpl.set:(Ljava/lang/Object;Lorg/bson/codecs/pojo/PropertyModel;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/codecs/pojo/InstanceCreatorImpl<TT;>;
0 2 1 propertyModel Lorg/bson/codecs/pojo/PropertyModel<TS;>;
0 2 2 value Ljava/lang/Object;
Signature: <S:Ljava/lang/Object;>(Lorg/bson/codecs/pojo/PropertyModel<TS;>;Ljava/lang/Object;)V
MethodParameters:
Name Flags
propertyModel final
value final
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/bson/codecs/pojo/InstanceCreator<TT;>;
SourceFile: "InstanceCreatorImpl.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map