|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.InvokerTransformer
public class InvokerTransformer
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 Transformer |
getInstance(String methodName)
Gets an instance of this transformer calling a specific method with no arguments. |
static Transformer |
getInstance(String methodName,
Class[] paramTypes,
Object[] args)
Gets an instance of this transformer calling a specific method with specific values. |
Object |
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)
getInstance if you want that.
methodName - the method to callparamTypes - the constructor parameter types, not clonedargs - the constructor arguments, not cloned| Method Detail |
|---|
public static Transformer getInstance(String methodName)
methodName - the method name to call
public static Transformer getInstance(String methodName,
Class[] paramTypes,
Object[] args)
methodName - the method name to callparamTypes - the parameter types of the methodargs - the arguments to pass to the method
public Object transform(Object input)
transform in interface Transformerinput - the input object to transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||