public abstract class AbstractDynamicMethodInvocation extends java.lang.Object implements DynamicMethodInvocation
Constructor and Description |
---|
AbstractDynamicMethodInvocation(java.util.regex.Pattern pattern) |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] arguments)
Invokes the actual method.
|
boolean |
isMethodMatch(java.lang.String methodName)
Checks if a method name matches the criteria of the implementation class.
|
void |
setPattern(java.util.regex.Pattern pattern) |
public AbstractDynamicMethodInvocation(java.util.regex.Pattern pattern)
public void setPattern(java.util.regex.Pattern pattern)
public boolean isMethodMatch(java.lang.String methodName)
DynamicMethodInvocation
isMethodMatch
in interface DynamicMethodInvocation
methodName
- the static method namepublic abstract java.lang.Object invoke(java.lang.Object target, java.lang.String methodName, java.lang.Object[] arguments)
DynamicMethodInvocation
invoke
in interface DynamicMethodInvocation
target
- the target on which the method is invoked.arguments
- the arguments passed in the method call @return the return value of the dynamic method invocation.