public class ReplaceOverride extends MethodOverride
Any non-final method can be overridden, irrespective of its parameters and return types.
| 构造器和说明 |
|---|
ReplaceOverride(String methodName,
String methodReplacerBeanName)
Construct a new ReplaceOverride.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addTypeIdentifier(String identifier)
Add a fragment of a class string, like "Exception"
or "java.lang.Exc", to identify a parameter type.
|
boolean |
equals(Object other) |
String |
getMethodReplacerBeanName()
Return the name of the bean implementing MethodReplacer.
|
int |
hashCode() |
boolean |
matches(Method method)
Subclasses must override this to indicate whether they match the
given method.
|
String |
toString() |
getMethodName, getSource, isOverloaded, setOverloaded, setSourcepublic String getMethodReplacerBeanName()
public void addTypeIdentifier(String identifier)
identifier - a substring of the fully qualified class namepublic boolean matches(Method method)
MethodOverridematches 在类中 MethodOverridemethod - the method to checkpublic boolean equals(Object other)
equals 在类中 MethodOverridepublic int hashCode()
hashCode 在类中 MethodOverride