public final class io.vertx.core.cli.converters.ConstructorBasedConverter<T> implements io.vertx.core.cli.converters.Converter<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.vertx.core.cli.converters.ConstructorBasedConverter
super_class: java.lang.Object
{
private final java.lang.reflect.Constructor<T> constructor;
descriptor: Ljava/lang/reflect/Constructor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/reflect/Constructor<TT;>;
private void <init>(java.lang.reflect.Constructor<T>);
descriptor: (Ljava/lang/reflect/Constructor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.core.cli.converters.ConstructorBasedConverter.constructor:Ljava/lang/reflect/Constructor;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/cli/converters/ConstructorBasedConverter<TT;>;
0 3 1 constructor Ljava/lang/reflect/Constructor<TT;>;
Signature: (Ljava/lang/reflect/Constructor<TT;>;)V
MethodParameters:
Name Flags
constructor
public static <T> io.vertx.core.cli.converters.ConstructorBasedConverter<T> getIfEligible(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lio/vertx/core/cli/converters/ConstructorBasedConverter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.reflect.Constructor.isAccessible:()Z
ifne 3
2: aload 1
iconst_1
invokevirtual java.lang.reflect.Constructor.setAccessible:(Z)V
3: StackMap locals: java.lang.reflect.Constructor
StackMap stack:
new io.vertx.core.cli.converters.ConstructorBasedConverter
dup
aload 1
invokespecial io.vertx.core.cli.converters.ConstructorBasedConverter.<init>:(Ljava/lang/reflect/Constructor;)V
4: areturn
end local 1 5: StackMap locals: java.lang.Class
StackMap stack: java.lang.NoSuchMethodException
pop
6: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 clazz Ljava/lang/Class<TT;>;
1 5 1 constructor Ljava/lang/reflect/Constructor<TT;>;
Exception table:
from to target type
0 4 5 Class java.lang.NoSuchMethodException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Lio/vertx/core/cli/converters/ConstructorBasedConverter<TT;>;
MethodParameters:
Name Flags
clazz
public T fromString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.cli.converters.ConstructorBasedConverter.constructor:Ljava/lang/reflect/Constructor;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 2
start local 2 3: aload 2
invokevirtual java.lang.ReflectiveOperationException.getCause:()Ljava/lang/Throwable;
ifnull 5
4: new java.lang.IllegalArgumentException
dup
aload 2
invokevirtual java.lang.ReflectiveOperationException.getCause:()Ljava/lang/Throwable;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
5: StackMap locals: java.lang.ReflectiveOperationException
StackMap stack:
new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/cli/converters/ConstructorBasedConverter<TT;>;
0 6 1 input Ljava/lang/String;
3 6 2 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 1 2 Class java.lang.InstantiationException
0 1 2 Class java.lang.IllegalAccessException
0 1 2 Class java.lang.reflect.InvocationTargetException
Exceptions:
throws java.lang.IllegalArgumentException
Signature: (Ljava/lang/String;)TT;
MethodParameters:
Name Flags
input
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/vertx/core/cli/converters/Converter<TT;>;
SourceFile: "ConstructorBasedConverter.java"