public final class io.vertx.core.cli.converters.ValueOfBasedConverter<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.ValueOfBasedConverter
super_class: java.lang.Object
{
public static final java.lang.String VALUE_OF;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "valueOf"
private final java.lang.reflect.Method method;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<T> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TT;>;
private void <init>(java.lang.Class<T>, java.lang.reflect.Method);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Method;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.core.cli.converters.ValueOfBasedConverter.clazz:Ljava/lang/Class;
2: aload 0
aload 2
putfield io.vertx.core.cli.converters.ValueOfBasedConverter.method:Ljava/lang/reflect/Method;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/cli/converters/ValueOfBasedConverter<TT;>;
0 4 1 clazz Ljava/lang/Class<TT;>;
0 4 2 method Ljava/lang/reflect/Method;
Signature: (Ljava/lang/Class<TT;>;Ljava/lang/reflect/Method;)V
MethodParameters:
Name Flags
clazz
method
public static <T> io.vertx.core.cli.converters.ValueOfBasedConverter<T> getIfEligible(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lio/vertx/core/cli/converters/ValueOfBasedConverter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
ldc "valueOf"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 6
2: aload 1
invokevirtual java.lang.reflect.Method.isAccessible:()Z
ifne 4
3: aload 1
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
4: StackMap locals: java.lang.reflect.Method
StackMap stack:
new io.vertx.core.cli.converters.ValueOfBasedConverter
dup
aload 0
aload 1
invokespecial io.vertx.core.cli.converters.ValueOfBasedConverter.<init>:(Ljava/lang/Class;Ljava/lang/reflect/Method;)V
5: areturn
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 7: StackMap locals: java.lang.Class
StackMap stack: java.lang.NoSuchMethodException
pop
8: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 clazz Ljava/lang/Class<TT;>;
1 7 1 method Ljava/lang/reflect/Method;
Exception table:
from to target type
0 5 7 Class java.lang.NoSuchMethodException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Lio/vertx/core/cli/converters/ValueOfBasedConverter<TT;>;
MethodParameters:
Name Flags
clazz
public T fromString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.cli.converters.ValueOfBasedConverter.clazz:Ljava/lang/Class;
aload 0
getfield io.vertx.core.cli.converters.ValueOfBasedConverter.method:Ljava/lang/reflect/Method;
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Class.cast:(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/ValueOfBasedConverter<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.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: "ValueOfBasedConverter.java"