public class org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy
super_class: java.lang.Object
{
public static final org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy INSTANCE;
descriptor: Lorg/eclipse/collections/impl/utility/internal/DefaultSpeciesNewStrategy;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.lang.Class<?>[] SIZE_CONSTRUCTOR_TYPES;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy
dup
invokespecial org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.<init>:()V
putstatic org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.INSTANCE:Lorg/eclipse/collections/impl/utility/internal/DefaultSpeciesNewStrategy;
1: iconst_1
anewarray java.lang.Class
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
putstatic org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.SIZE_CONSTRUCTOR_TYPES:[Ljava/lang/Class;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/utility/internal/DefaultSpeciesNewStrategy;
public <T> java.util.Collection<T> speciesNew(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.eclipse.collections.api.collection.MutableCollection
ifeq 2
1: aload 1
checkcast org.eclipse.collections.api.collection.MutableCollection
invokeinterface org.eclipse.collections.api.collection.MutableCollection.newEmpty:()Lorg/eclipse/collections/api/collection/MutableCollection;
areturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.reflect.Proxy
ifeq 4
3: aload 1
invokestatic org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.createNewInstanceForCollectionType:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.eclipse.collections.impl.utility.internal.ReflectionHelper.hasDefaultConstructor:(Ljava/lang/Class;)Z
ifeq 6
5: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.eclipse.collections.impl.utility.internal.ReflectionHelper.newInstance:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.util.Collection
areturn
6: StackMap locals:
StackMap stack:
aload 1
invokestatic org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.createNewInstanceForCollectionType:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/collections/impl/utility/internal/DefaultSpeciesNewStrategy;
0 7 1 collection Ljava/util/Collection<*>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Collection<*>;)Ljava/util/Collection<TT;>;
MethodParameters:
Name Flags
collection
public <T> java.util.Collection<T> speciesNew(java.util.Collection<?>, int);
descriptor: (Ljava/util/Collection;I)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "size may not be < 0 but was "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.reflect.Proxy
ifne 6
3: aload 1
instanceof java.util.PriorityQueue
ifne 6
4: aload 1
instanceof java.util.concurrent.PriorityBlockingQueue
ifne 6
5: aload 1
instanceof java.util.SortedSet
ifeq 7
6: StackMap locals:
StackMap stack:
aload 1
invokestatic org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.createNewInstanceForCollectionType:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
getstatic org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.SIZE_CONSTRUCTOR_TYPES:[Ljava/lang/Class;
invokestatic org.eclipse.collections.impl.utility.internal.ReflectionHelper.getConstructor:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 3
start local 3 8: aload 3
ifnull 10
9: aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic org.eclipse.collections.impl.utility.internal.ReflectionHelper.newInstance:(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Collection
areturn
10: StackMap locals: java.lang.reflect.Constructor
StackMap stack:
aload 0
aload 1
invokevirtual org.eclipse.collections.impl.utility.internal.DefaultSpeciesNewStrategy.speciesNew:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/collections/impl/utility/internal/DefaultSpeciesNewStrategy;
0 11 1 collection Ljava/util/Collection<*>;
0 11 2 size I
8 11 3 constructor Ljava/lang/reflect/Constructor<*>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Collection<*>;I)Ljava/util/Collection<TT;>;
MethodParameters:
Name Flags
collection
size
private static <T> java.util.Collection<T> createNewInstanceForCollectionType(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof java.util.SortedSet
ifne 3
1: aload 0
instanceof java.util.PriorityQueue
ifne 3
2: aload 0
instanceof java.util.concurrent.PriorityBlockingQueue
ifeq 4
3: StackMap locals:
StackMap stack:
getstatic org.eclipse.collections.impl.factory.Lists.mutable:Lorg/eclipse/collections/api/factory/list/MutableListFactory;
invokeinterface org.eclipse.collections.api.factory.list.MutableListFactory.empty:()Lorg/eclipse/collections/api/list/MutableList;
areturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.Set
ifeq 6
5: getstatic org.eclipse.collections.impl.factory.Sets.mutable:Lorg/eclipse/collections/api/factory/set/MutableSetFactory;
invokeinterface org.eclipse.collections.api.factory.set.MutableSetFactory.empty:()Lorg/eclipse/collections/api/set/MutableSet;
areturn
6: StackMap locals:
StackMap stack:
getstatic org.eclipse.collections.impl.factory.Lists.mutable:Lorg/eclipse/collections/api/factory/list/MutableListFactory;
invokeinterface org.eclipse.collections.api.factory.list.MutableListFactory.empty:()Lorg/eclipse/collections/api/list/MutableList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 collection Ljava/util/Collection<*>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Collection<*>;)Ljava/util/Collection<TT;>;
MethodParameters:
Name Flags
collection
}
SourceFile: "DefaultSpeciesNewStrategy.java"