public class org.springframework.beans.propertyeditors.CustomMapEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.CustomMapEditor
super_class: java.beans.PropertyEditorSupport
{
private final java.lang.Class<? extends java.util.Map> mapType;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<+Ljava/util/Map;>;
private final boolean nullAsEmptyMap;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class<? extends java.util.Map>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial org.springframework.beans.propertyeditors.CustomMapEditor.<init>:(Ljava/lang/Class;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 2 1 mapType Ljava/lang/Class<+Ljava/util/Map;>;
Signature: (Ljava/lang/Class<+Ljava/util/Map;>;)V
MethodParameters:
Name Flags
mapType
public void <init>(java.lang.Class<? extends java.util.Map>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.beans.PropertyEditorSupport.<init>:()V
1: aload 1
ldc "Map type is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: ldc Ljava/util/Map;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 6
3: new java.lang.IllegalArgumentException
dup
4: new java.lang.StringBuilder
dup
ldc "Map type ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] does not implement [java.util.Map]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.springframework.beans.propertyeditors.CustomMapEditor java.lang.Class int
StackMap stack:
aload 0
aload 1
putfield org.springframework.beans.propertyeditors.CustomMapEditor.mapType:Ljava/lang/Class;
7: aload 0
iload 2
putfield org.springframework.beans.propertyeditors.CustomMapEditor.nullAsEmptyMap:Z
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 9 1 mapType Ljava/lang/Class<+Ljava/util/Map;>;
0 9 2 nullAsEmptyMap Z
Signature: (Ljava/lang/Class<+Ljava/util/Map;>;Z)V
MethodParameters:
Name Flags
mapType
nullAsEmptyMap
public void setAsText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.beans.propertyeditors.CustomMapEditor.setValue:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 2 1 text Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
text
public void setValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
aload 0
getfield org.springframework.beans.propertyeditors.CustomMapEditor.nullAsEmptyMap:Z
ifeq 3
1: aload 0
aload 0
aload 0
getfield org.springframework.beans.propertyeditors.CustomMapEditor.mapType:Ljava/lang/Class;
iconst_0
invokevirtual org.springframework.beans.propertyeditors.CustomMapEditor.createMap:(Ljava/lang/Class;I)Ljava/util/Map;
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
2: goto 13
3: StackMap locals:
StackMap stack:
aload 1
ifnull 4
aload 0
getfield org.springframework.beans.propertyeditors.CustomMapEditor.mapType:Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual org.springframework.beans.propertyeditors.CustomMapEditor.alwaysCreateNewMap:()Z
ifne 6
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
5: goto 13
6: StackMap locals:
StackMap stack:
aload 1
instanceof java.util.Map
ifeq 12
7: aload 1
checkcast java.util.Map
astore 2
start local 2 8: aload 0
aload 0
getfield org.springframework.beans.propertyeditors.CustomMapEditor.mapType:Ljava/lang/Class;
aload 2
invokeinterface java.util.Map.size:()I
invokevirtual org.springframework.beans.propertyeditors.CustomMapEditor.createMap:(Ljava/lang/Class;I)Ljava/util/Map;
astore 3
start local 3 9: aload 2
aload 0
aload 3
invokedynamic accept(Lorg/springframework/beans/propertyeditors/CustomMapEditor;Ljava/util/Map;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
org/springframework/beans/propertyeditors/CustomMapEditor.lambda$0(Ljava/util/Map;Ljava/lang/Object;Ljava/lang/Object;)V (7)
(Ljava/lang/Object;Ljava/lang/Object;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
10: aload 0
aload 3
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
end local 3 end local 2 11: goto 13
12: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Value cannot be converted to Map: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 14 1 value Ljava/lang/Object;
8 11 2 source Ljava/util/Map<**>;
9 11 3 target Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
value
protected java.util.Map<java.lang.Object, java.lang.Object> createMap(java.lang.Class<? extends java.util.Map>, int);
descriptor: (Ljava/lang/Class;I)Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Class.isInterface:()Z
ifne 7
1: aload 1
iconst_0
anewarray java.lang.Class
invokestatic org.springframework.util.ReflectionUtils.accessibleConstructor:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
2: areturn
3: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 4: new java.lang.IllegalArgumentException
dup
5: new java.lang.StringBuilder
dup
ldc "Could not instantiate map class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 7: StackMap locals:
StackMap stack:
ldc Ljava/util/SortedMap;
aload 1
if_acmpne 9
8: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
areturn
9: StackMap locals:
StackMap stack:
new java.util.LinkedHashMap
dup
iload 2
invokespecial java.util.LinkedHashMap.<init>:(I)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 10 1 mapType Ljava/lang/Class<+Ljava/util/Map;>;
0 10 2 initialCapacity I
4 7 3 ex Ljava/lang/Throwable;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
Signature: (Ljava/lang/Class<+Ljava/util/Map;>;I)Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
MethodParameters:
Name Flags
mapType
initialCapacity
protected boolean alwaysCreateNewMap();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
protected java.lang.Object convertKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 1 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
protected java.lang.Object convertValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 1 1 value Ljava/lang/Object;
MethodParameters:
Name Flags
value
public java.lang.String getAsText();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private void lambda$0(java.util.Map, java.lang.Object, java.lang.Object);
descriptor: (Ljava/util/Map;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 2 start local 3 0: aload 1
aload 0
aload 2
invokevirtual org.springframework.beans.propertyeditors.CustomMapEditor.convertKey:(Ljava/lang/Object;)Ljava/lang/Object;
aload 0
aload 3
invokevirtual org.springframework.beans.propertyeditors.CustomMapEditor.convertValue:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/beans/propertyeditors/CustomMapEditor;
0 1 2 key Ljava/lang/Object;
0 1 3 val Ljava/lang/Object;
}
SourceFile: "CustomMapEditor.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles