public class io.vertx.core.cli.impl.ReflectionUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.cli.impl.ReflectionUtils
super_class: java.lang.Object
{
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 Lio/vertx/core/cli/impl/ReflectionUtils;
public static <T> T newInstance(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getDeclaredConstructor:([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;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Cannot instantiate "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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 1
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 clazz Ljava/lang/Class<TT;>;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
clazz
public static boolean isSetter(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
ldc "set"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 0
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
arraylength
iconst_1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
method
public static java.util.List<java.lang.reflect.Method> getSetterMethods(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getMethods:()[Ljava/lang/reflect/Method;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
io/vertx/core/cli/impl/ReflectionUtils.isSetter(Ljava/lang/reflect/Method;)Z (6)
(Ljava/lang/reflect/Method;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/List<Ljava/lang/reflect/Method;>;
MethodParameters:
Name Flags
clazz
public static boolean isMultiple(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
iconst_0
aaload
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Class.isArray:()Z
ifne 4
ldc Ljava/util/List;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 4
ldc Ljava/util/Set;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 4
2: ldc Ljava/util/Collection;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 4
3: iconst_0
ireturn
StackMap locals: java.lang.Class
StackMap stack:
4: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 setter Ljava/lang/reflect/Method;
1 5 1 type Ljava/lang/Class<*>;
MethodParameters:
Name Flags
setter
public static java.lang.Class getComponentType(java.lang.reflect.Parameter);
descriptor: (Ljava/lang/reflect/Parameter;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.reflect.Parameter.getType:()Ljava/lang/Class;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Class.isArray:()Z
ifeq 3
2: aload 1
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aload 0
invokevirtual java.lang.reflect.Parameter.getParameterizedType:()Ljava/lang/reflect/Type;
ifnull 5
4: aload 0
invokevirtual java.lang.reflect.Parameter.getParameterizedType:()Ljava/lang/reflect/Type;
checkcast java.lang.reflect.ParameterizedType
invokeinterface java.lang.reflect.ParameterizedType.getActualTypeArguments:()[Ljava/lang/reflect/Type;
iconst_0
aaload
checkcast java.lang.Class
areturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.reflect.Parameter.getType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getGenericSuperclass:()Ljava/lang/reflect/Type;
instanceof java.lang.reflect.ParameterizedType
ifeq 7
6: aload 0
invokevirtual java.lang.reflect.Parameter.getType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getGenericSuperclass:()Ljava/lang/reflect/Type;
checkcast java.lang.reflect.ParameterizedType
invokeinterface java.lang.reflect.ParameterizedType.getActualTypeArguments:()[Ljava/lang/reflect/Type;
iconst_0
aaload
checkcast java.lang.Class
areturn
7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 parameter Ljava/lang/reflect/Parameter;
1 8 1 type Ljava/lang/Class<*>;
MethodParameters:
Name Flags
parameter
}
SourceFile: "ReflectionUtils.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles