public class ReplaceOverride extends MethodOverride
Any non-final method can be overridden, irrespective of its parameters and return types.
| Constructor and Description |
|---|
ReplaceOverride(java.lang.String methodName,
java.lang.String methodReplacerBeanName)
Construct a new ReplaceOverride.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTypeIdentifier(java.lang.String identifier)
Add a fragment of a class string, like "Exception"
or "java.lang.Exc", to identify a parameter type.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getMethodReplacerBeanName()
Return the name of the bean implementing MethodReplacer.
|
int |
hashCode() |
boolean |
matches(java.lang.reflect.Method method)
Subclasses must override this to indicate whether they match the
given method.
|
java.lang.String |
toString() |
getMethodName, getSource, isOverloaded, setOverloaded, setSourcepublic ReplaceOverride(java.lang.String methodName,
java.lang.String methodReplacerBeanName)
methodName - the name of the method to overridemethodReplacerBeanName - the bean name of the MethodReplacerpublic java.lang.String getMethodReplacerBeanName()
public void addTypeIdentifier(java.lang.String identifier)
identifier - a substring of the fully qualified class namepublic boolean matches(java.lang.reflect.Method method)
MethodOverridematches in class MethodOverridemethod - the method to checkpublic boolean equals(java.lang.Object other)
equals in class MethodOverridepublic int hashCode()
hashCode in class MethodOverridepublic java.lang.String toString()
toString in class java.lang.Object