public abstract class AbstractStaticMethodInvocation extends java.lang.Object implements StaticMethodInvocation
| Constructor and Description |
|---|
AbstractStaticMethodInvocation() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.regex.Pattern |
getPattern() |
abstract java.lang.Object |
invoke(java.lang.Class clazz,
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) |
void |
setPattern(java.lang.String methodPattern) |
java.lang.String |
toString() |
public void setPattern(java.util.regex.Pattern pattern)
public void setPattern(java.lang.String methodPattern)
protected java.util.regex.Pattern getPattern()
public boolean isMethodMatch(java.lang.String methodName)
StaticMethodInvocationisMethodMatch in interface StaticMethodInvocationmethodName - the static method namepublic abstract java.lang.Object invoke(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Object[] arguments)
StaticMethodInvocationinvoke in interface StaticMethodInvocationclazz - the class the static method is called onmethodName - the static method namearguments - the arguments suppliedpublic java.lang.String toString()
toString in class java.lang.Object