public class org.apache.commons.collections4.functors.InvokerTransformer<I, O> implements org.apache.commons.collections4.Transformer<I, O>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.functors.InvokerTransformer
super_class: java.lang.Object
{
private final java.lang.String iMethodName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<?>[] iParamTypes;
descriptor: [Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
private final java.lang.Object[] iArgs;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static <I, O> org.apache.commons.collections4.Transformer<I, O> invokerTransformer(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/commons/collections4/Transformer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "The method to invoke must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.functors.InvokerTransformer
dup
aload 0
invokespecial org.apache.commons.collections4.functors.InvokerTransformer.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 methodName Ljava/lang/String;
Signature: <I:Ljava/lang/Object;O:Ljava/lang/Object;>(Ljava/lang/String;)Lorg/apache/commons/collections4/Transformer<TI;TO;>;
MethodParameters:
Name Flags
methodName final
public static <I, O> org.apache.commons.collections4.Transformer<I, O> invokerTransformer(java.lang.String, java.lang.Class<?>[], []);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Lorg/apache/commons/collections4/Transformer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "The method to invoke must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 3
aload 2
ifnonnull 5
3: StackMap locals:
StackMap stack:
aload 1
ifnull 4
aload 2
ifnull 5
4: StackMap locals:
StackMap stack:
aload 1
ifnull 6
aload 2
ifnull 6
aload 1
arraylength
aload 2
arraylength
if_icmpeq 6
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "The parameter types must match the arguments"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
ifnull 7
aload 1
arraylength
ifne 8
7: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.functors.InvokerTransformer
dup
aload 0
invokespecial org.apache.commons.collections4.functors.InvokerTransformer.<init>:(Ljava/lang/String;)V
areturn
8: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.functors.InvokerTransformer
dup
aload 0
aload 1
aload 2
invokespecial org.apache.commons.collections4.functors.InvokerTransformer.<init>:(Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 methodName Ljava/lang/String;
0 9 1 paramTypes [Ljava/lang/Class;
0 9 2 args [Ljava/lang/Object;
Signature: <I:Ljava/lang/Object;O:Ljava/lang/Object;>(Ljava/lang/String;[Ljava/lang/Class<*>;[Ljava/lang/Object;)Lorg/apache/commons/collections4/Transformer<TI;TO;>;
MethodParameters:
Name Flags
methodName final
paramTypes final
args final
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)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 org.apache.commons.collections4.functors.InvokerTransformer.iMethodName:Ljava/lang/String;
2: aload 0
aconst_null
putfield org.apache.commons.collections4.functors.InvokerTransformer.iParamTypes:[Ljava/lang/Class;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.functors.InvokerTransformer.iArgs:[Ljava/lang/Object;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/functors/InvokerTransformer<TI;TO;>;
0 5 1 methodName Ljava/lang/String;
MethodParameters:
Name Flags
methodName final
public void <init>(java.lang.String, java.lang.Class<?>[], []);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.commons.collections4.functors.InvokerTransformer.iMethodName:Ljava/lang/String;
2: aload 0
aload 2
ifnull 3
aload 2
invokevirtual java.lang.Class[].clone:()Ljava/lang/Object;
checkcast java.lang.Class[]
goto 4
StackMap locals: org.apache.commons.collections4.functors.InvokerTransformer java.lang.String java.lang.Class[] java.lang.Object[]
StackMap stack: org.apache.commons.collections4.functors.InvokerTransformer
3: aconst_null
StackMap locals: org.apache.commons.collections4.functors.InvokerTransformer java.lang.String java.lang.Class[] java.lang.Object[]
StackMap stack: org.apache.commons.collections4.functors.InvokerTransformer java.lang.Class[]
4: putfield org.apache.commons.collections4.functors.InvokerTransformer.iParamTypes:[Ljava/lang/Class;
5: aload 0
aload 3
ifnull 6
aload 3
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
goto 7
StackMap locals:
StackMap stack: org.apache.commons.collections4.functors.InvokerTransformer
6: aconst_null
StackMap locals: org.apache.commons.collections4.functors.InvokerTransformer java.lang.String java.lang.Class[] java.lang.Object[]
StackMap stack: org.apache.commons.collections4.functors.InvokerTransformer java.lang.Object[]
7: putfield org.apache.commons.collections4.functors.InvokerTransformer.iArgs:[Ljava/lang/Object;
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/commons/collections4/functors/InvokerTransformer<TI;TO;>;
0 9 1 methodName Ljava/lang/String;
0 9 2 paramTypes [Ljava/lang/Class;
0 9 3 args [Ljava/lang/Object;
Signature: (Ljava/lang/String;[Ljava/lang/Class<*>;[Ljava/lang/Object;)V
MethodParameters:
Name Flags
methodName final
paramTypes final
args final
public O transform();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
start local 2 3: aload 2
aload 0
getfield org.apache.commons.collections4.functors.InvokerTransformer.iMethodName:Ljava/lang/String;
aload 0
getfield org.apache.commons.collections4.functors.InvokerTransformer.iParamTypes:[Ljava/lang/Class;
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 3
start local 3 4: aload 3
aload 1
aload 0
getfield org.apache.commons.collections4.functors.InvokerTransformer.iArgs:[Ljava/lang/Object;
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
5: areturn
end local 3 end local 2 6: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
pop
7: new org.apache.commons.collections4.FunctorException
dup
new java.lang.StringBuilder
dup
ldc "InvokerTransformer: The method '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.commons.collections4.functors.InvokerTransformer.iMethodName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' on '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial org.apache.commons.collections4.FunctorException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
pop
11: new org.apache.commons.collections4.FunctorException
dup
new java.lang.StringBuilder
dup
ldc "InvokerTransformer: The method '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.commons.collections4.functors.InvokerTransformer.iMethodName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' on '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' cannot be accessed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial org.apache.commons.collections4.FunctorException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 15: new org.apache.commons.collections4.FunctorException
dup
new java.lang.StringBuilder
dup
ldc "InvokerTransformer: The method '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.commons.collections4.functors.InvokerTransformer.iMethodName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' on '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' threw an exception"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
17: invokespecial org.apache.commons.collections4.FunctorException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/commons/collections4/functors/InvokerTransformer<TI;TO;>;
0 18 1 input Ljava/lang/Object;
3 6 2 cls Ljava/lang/Class<*>;
4 6 3 method Ljava/lang/reflect/Method;
15 18 2 ex Ljava/lang/reflect/InvocationTargetException;
Exception table:
from to target type
2 5 6 Class java.lang.NoSuchMethodException
2 5 10 Class java.lang.IllegalAccessException
2 5 14 Class java.lang.reflect.InvocationTargetException
Signature: (Ljava/lang/Object;)TO;
MethodParameters:
Name Flags
input final
}
Signature: <I:Ljava/lang/Object;O:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/commons/collections4/Transformer<TI;TO;>;
SourceFile: "InvokerTransformer.java"