public class CreateDynamicMethod extends AbstractStaticMethodInvocation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METHOD_NAME |
Constructor and Description |
---|
CreateDynamicMethod() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Object[] arguments)
Invokes the actual method.
|
isMethodMatch, setPattern, setPattern, toString
public static final java.lang.String METHOD_NAME
public java.lang.Object invoke(java.lang.Class clazz, java.lang.String methodName, java.lang.Object[] arguments)
StaticMethodInvocation
invoke
in interface StaticMethodInvocation
invoke
in class AbstractStaticMethodInvocation
clazz
- the class the static method is called onmethodName
- the static method namearguments
- the arguments supplied