class picocli.CommandLine$BuiltIn$ReflectionConverter implements picocli.CommandLine$ITypeConverter<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: picocli.CommandLine$BuiltIn$ReflectionConverter
super_class: java.lang.Object
{
private final java.lang.reflect.Method method;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.Class<?>[] paramTypes;
descriptor: [Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Signature: [Ljava/lang/Class<*>;
public void <init>(java.lang.reflect.Method, java.lang.Class<?>[]);
descriptor: (Ljava/lang/reflect/Method;[Ljava/lang/Class;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, 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
ldc "method"
invokestatic picocli.CommandLine$Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.reflect.Method
putfield picocli.CommandLine$BuiltIn$ReflectionConverter.method:Ljava/lang/reflect/Method;
2: aload 0
aload 2
ldc "paramTypes"
invokestatic picocli.CommandLine$Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.Class[]
putfield picocli.CommandLine$BuiltIn$ReflectionConverter.paramTypes:[Ljava/lang/Class;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lpicocli/CommandLine$BuiltIn$ReflectionConverter;
0 4 1 method Ljava/lang/reflect/Method;
0 4 2 paramTypes [Ljava/lang/Class;
Signature: (Ljava/lang/reflect/Method;[Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
method
paramTypes
public java.lang.Object convert(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 picocli.CommandLine$BuiltIn$ReflectionConverter.paramTypes:[Ljava/lang/Class;
arraylength
iconst_1
if_icmple 3
1: aload 0
getfield picocli.CommandLine$BuiltIn$ReflectionConverter.method:Ljava/lang/reflect/Method;
aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
iconst_0
anewarray java.lang.String
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield picocli.CommandLine$BuiltIn$ReflectionConverter.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;
4: areturn
5: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 6: new picocli.CommandLine$TypeConversionException
dup
ldc "cannot convert '%s' to %s (%s)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
getfield picocli.CommandLine$BuiltIn$ReflectionConverter.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
aastore
dup
iconst_2
aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial picocli.CommandLine$TypeConversionException.<init>:(Ljava/lang/String;)V
athrow
end local 2 7: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 8: new picocli.CommandLine$TypeConversionException
dup
ldc "Internal error converting '%s' to %s (%s)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
getfield picocli.CommandLine$BuiltIn$ReflectionConverter.method:Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
aastore
dup
iconst_2
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial picocli.CommandLine$TypeConversionException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lpicocli/CommandLine$BuiltIn$ReflectionConverter;
0 9 1 s Ljava/lang/String;
6 7 2 e Ljava/lang/reflect/InvocationTargetException;
8 9 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 5 Class java.lang.reflect.InvocationTargetException
3 4 5 Class java.lang.reflect.InvocationTargetException
0 2 7 Class java.lang.Exception
3 4 7 Class java.lang.Exception
MethodParameters:
Name Flags
s
}
Signature: Ljava/lang/Object;Lpicocli/CommandLine$ITypeConverter<Ljava/lang/Object;>;
SourceFile: "CommandLine.java"
NestHost: picocli.CommandLine
InnerClasses:
private final Assert = picocli.CommandLine$Assert of picocli.CommandLine
private BuiltIn = picocli.CommandLine$BuiltIn of picocli.CommandLine
ReflectionConverter = picocli.CommandLine$BuiltIn$ReflectionConverter of picocli.CommandLine$BuiltIn
public abstract ITypeConverter = picocli.CommandLine$ITypeConverter of picocli.CommandLine
public TypeConversionException = picocli.CommandLine$TypeConversionException of picocli.CommandLine