public abstract class DynamicMethodMatcher extends ObjectSE implements MethodMatcher
TRUE
コンストラクターと説明 |
---|
DynamicMethodMatcher() |
修飾子と型 | メソッドと説明 |
---|---|
boolean | isRuntime() この MethodMatcher は動的ですか、つまり、2-arg matches メソッドが true を返す場合でも、実行時に MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) メソッドで最後の呼び出しを行う必要がありますか? |
boolean | matches(MethodSE method, ClassSE<?> targetClass) オーバーライドして、動的マッチングの前提条件を追加できます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
matches
public final boolean isRuntime()
MethodMatcher
true
を返す場合でも、実行時に MethodMatcher.matches(java.lang.reflect.Method, Class, Object[])
メソッドで最後の呼び出しを行う必要がありますか? AOP プロキシの作成時に呼び出すことができ、各メソッド呼び出しの前に再度呼び出す必要はありません。
MethodMatcher
の isRuntime
MethodMatcher.matches(java.lang.reflect.Method, Class, Object[])
メソッドによる実行時一致が必要かどうか public boolean matches(MethodSE method, ClassSE<?> targetClass)
MethodMatcher
の matches
method
- 候補メソッド targetClass
- ターゲットクラス