public class ReplaceOverride extends MethodOverride
final 以外のメソッドは、そのパラメーターや戻り値の型に関係なく、オーバーライドできます。
コンストラクターと説明 |
---|
ReplaceOverride(StringSE methodName, StringSE methodReplacerBeanName) 新しい ReplaceOverride を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | addTypeIdentifier(StringSE identifier) "Exception" や "java.lang.Exc" などのクラス文字列のフラグメントを追加して、パラメーター型を識別します。 |
boolean | equals(ObjectSE other) |
StringSE | getMethodReplacerBeanName() MethodReplacer を実装する Bean の名前を返します。 |
int | hashCode() |
boolean | matches(MethodSE method) サブクラスはこれをオーバーライドして、指定されたメソッドと一致するかどうかを示す必要があります。 |
StringSE | toString() |
getMethodName, getSource, isOverloaded, setOverloaded, setSource
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public StringSE getMethodReplacerBeanName()
public void addTypeIdentifier(StringSE identifier)
identifier
- 完全修飾クラス名の部分文字列 public boolean matches(MethodSE method)
MethodOverride
MethodOverride
の matches
method
- チェックする方法 public boolean equals(ObjectSE other)
MethodOverride
の equals
public int hashCode()
MethodOverride
の hashCode
public StringSE toString()
ObjectSE
の toStringSE