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 |
|---|---|
protected java.util.regex.Pattern |
getPattern() |
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)
protected java.util.regex.Pattern getPattern()
public boolean isMethodMatch(java.lang.String methodName)
DynamicMethodInvocationisMethodMatch in interface DynamicMethodInvocationmethodName - the static method namepublic abstract java.lang.Object invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] arguments)
DynamicMethodInvocationinvoke in interface DynamicMethodInvocationtarget - 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.