public abstract class AbstractStaticMethodInvocation extends java.lang.Object implements StaticMethodInvocation
Constructor and Description |
---|
AbstractStaticMethodInvocation() |
Modifier and Type | Method and Description |
---|---|
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)
public boolean isMethodMatch(java.lang.String methodName)
StaticMethodInvocation
isMethodMatch
in interface StaticMethodInvocation
methodName
- the static method namepublic abstract java.lang.Object invoke(java.lang.Class clazz, java.lang.String methodName, java.lang.Object[] arguments)
StaticMethodInvocation
invoke
in interface StaticMethodInvocation
clazz
- 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