org.apache.commons.collections.functors
public class InvokerTransformer extends Object implements Transformer, Serializable
Constructor and Description |
---|
InvokerTransformer(String methodName,
Class[] paramTypes,
Object[] args)
Constructor that performs no validation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 clonedpublic static Transformer getInstance(String methodName)
methodName
- the method name to callpublic 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 methodpublic Object transform(Object input)
transform
in interface Transformer
input
- the input object to transformCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.