public class org.springframework.beans.propertyeditors.CustomCollectionEditor extends java.beans.PropertyEditorSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.propertyeditors.CustomCollectionEditor
super_class: java.beans.PropertyEditorSupport
{
private final java.lang.Class<? extends java.util.Collection> collectionType;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<+Ljava/util/Collection;>;
private final boolean nullAsEmptyCollection;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.Class<? extends java.util.Collection>);
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.CustomCollectionEditor.<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/CustomCollectionEditor;
0 2 1 collectionType Ljava/lang/Class<+Ljava/util/Collection;>;
Signature: (Ljava/lang/Class<+Ljava/util/Collection;>;)V
MethodParameters:
Name Flags
collectionType
public void <init>(java.lang.Class<? extends java.util.Collection>, );
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 "Collection type is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: ldc Ljava/util/Collection;
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 "Collection 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.Collection]"
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.CustomCollectionEditor java.lang.Class int
StackMap stack:
aload 0
aload 1
putfield org.springframework.beans.propertyeditors.CustomCollectionEditor.collectionType:Ljava/lang/Class;
7: aload 0
iload 2
putfield org.springframework.beans.propertyeditors.CustomCollectionEditor.nullAsEmptyCollection: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/CustomCollectionEditor;
0 9 1 collectionType Ljava/lang/Class<+Ljava/util/Collection;>;
0 9 2 nullAsEmptyCollection Z
Signature: (Ljava/lang/Class<+Ljava/util/Collection;>;Z)V
MethodParameters:
Name Flags
collectionType
nullAsEmptyCollection
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.CustomCollectionEditor.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/CustomCollectionEditor;
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=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
aload 0
getfield org.springframework.beans.propertyeditors.CustomCollectionEditor.nullAsEmptyCollection:Z
ifeq 3
1: aload 0
aload 0
aload 0
getfield org.springframework.beans.propertyeditors.CustomCollectionEditor.collectionType:Ljava/lang/Class;
iconst_0
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.createCollection:(Ljava/lang/Class;I)Ljava/util/Collection;
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
2: goto 28
3: StackMap locals:
StackMap stack:
aload 1
ifnull 4
aload 0
getfield org.springframework.beans.propertyeditors.CustomCollectionEditor.collectionType:Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 6
aload 0
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.alwaysCreateNewCollection:()Z
ifne 6
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
5: goto 28
6: StackMap locals:
StackMap stack:
aload 1
instanceof java.util.Collection
ifeq 15
7: aload 1
checkcast java.util.Collection
astore 2
start local 2 8: aload 0
aload 0
getfield org.springframework.beans.propertyeditors.CustomCollectionEditor.collectionType:Ljava/lang/Class;
aload 2
invokeinterface java.util.Collection.size:()I
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.createCollection:(Ljava/lang/Class;I)Ljava/util/Collection;
astore 3
start local 3 9: aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 12
StackMap locals: org.springframework.beans.propertyeditors.CustomCollectionEditor java.lang.Object java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
10: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 11: aload 3
aload 0
aload 4
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.convertElement:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 4 12: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: aload 0
aload 3
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
end local 3 end local 2 14: goto 28
15: StackMap locals: org.springframework.beans.propertyeditors.CustomCollectionEditor java.lang.Object
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifeq 25
16: aload 1
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
istore 2
start local 2 17: aload 0
aload 0
getfield org.springframework.beans.propertyeditors.CustomCollectionEditor.collectionType:Ljava/lang/Class;
iload 2
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.createCollection:(Ljava/lang/Class;I)Ljava/util/Collection;
astore 3
start local 3 18: iconst_0
istore 4
start local 4 19: goto 22
20: StackMap locals: int java.util.Collection int
StackMap stack:
aload 3
aload 0
aload 1
iload 4
invokestatic java.lang.reflect.Array.get:(Ljava/lang/Object;I)Ljava/lang/Object;
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.convertElement:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
21: iinc 4 1
StackMap locals:
StackMap stack:
22: iload 4
iload 2
if_icmplt 20
end local 4 23: aload 0
aload 3
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
end local 3 end local 2 24: goto 28
25: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.springframework.beans.propertyeditors.CustomCollectionEditor.collectionType:Ljava/lang/Class;
iconst_1
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.createCollection:(Ljava/lang/Class;I)Ljava/util/Collection;
astore 2
start local 2 26: aload 2
aload 0
aload 1
invokevirtual org.springframework.beans.propertyeditors.CustomCollectionEditor.convertElement:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
27: aload 0
aload 2
invokespecial java.beans.PropertyEditorSupport.setValue:(Ljava/lang/Object;)V
end local 2 28: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/springframework/beans/propertyeditors/CustomCollectionEditor;
0 29 1 value Ljava/lang/Object;
8 14 2 source Ljava/util/Collection<*>;
9 14 3 target Ljava/util/Collection<Ljava/lang/Object;>;
11 12 4 elem Ljava/lang/Object;
17 24 2 length I
18 24 3 target Ljava/util/Collection<Ljava/lang/Object;>;
19 23 4 i I
26 28 2 target Ljava/util/Collection<Ljava/lang/Object;>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
value
protected java.util.Collection<java.lang.Object> createCollection(java.lang.Class<? extends java.util.Collection>, int);
descriptor: (Ljava/lang/Class;I)Ljava/util/Collection;
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.Collection
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 collection 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/List;
aload 1
if_acmpne 9
8: new java.util.ArrayList
dup
iload 2
invokespecial java.util.ArrayList.<init>:(I)V
areturn
9: StackMap locals:
StackMap stack:
ldc Ljava/util/SortedSet;
aload 1
if_acmpne 11
10: new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
areturn
11: StackMap locals:
StackMap stack:
new java.util.LinkedHashSet
dup
iload 2
invokespecial java.util.LinkedHashSet.<init>:(I)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/beans/propertyeditors/CustomCollectionEditor;
0 12 1 collectionType Ljava/lang/Class<+Ljava/util/Collection;>;
0 12 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/Collection;>;I)Ljava/util/Collection<Ljava/lang/Object;>;
MethodParameters:
Name Flags
collectionType
initialCapacity
protected boolean alwaysCreateNewCollection();
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/CustomCollectionEditor;
protected java.lang.Object convertElement(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/CustomCollectionEditor;
0 1 1 element Ljava/lang/Object;
MethodParameters:
Name Flags
element
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/CustomCollectionEditor;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
}
SourceFile: "CustomCollectionEditor.java"