|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections4.functors.InvokerTransformer<I,O>
public class InvokerTransformer<I,O>
Transformer implementation that creates a new object instance by reflection.
| Constructor Summary | |
|---|---|
InvokerTransformer(String methodName,
Class<?>[] paramTypes,
Object[] args)
Constructor that performs no validation. |
|
| Method Summary | ||
|---|---|---|
static
|
invokerTransformer(String methodName)
Gets an instance of this transformer calling a specific method with no arguments. |
|
static
|
invokerTransformer(String methodName,
Class<?>[] paramTypes,
Object[] args)
Gets an instance of this transformer calling a specific method with specific values. |
|
O |
transform(Object input)
Transforms the input to result by invoking a method on the input. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvokerTransformer(String methodName,
Class<?>[] paramTypes,
Object[] args)
invokerTransformer if you want that.
Note: from 4.0, the input parameters will be cloned
methodName - the method to callparamTypes - the constructor parameter typesargs - the constructor arguments| Method Detail |
|---|
public static <I,O> Transformer<I,O> invokerTransformer(String methodName)
I - the input typeO - the output typemethodName - the method name to call
public static <I,O> Transformer<I,O> invokerTransformer(String methodName,
Class<?>[] paramTypes,
Object[] args)
I - the input typeO - the output typemethodName - the method name to callparamTypes - the parameter types of the methodargs - the arguments to pass to the method
public O transform(Object input)
transform in interface Transformer<I,O>input - the input object to transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||