public abstract class StaticMethodMatcher extends ObjectSE implements MethodMatcher
TRUE| コンストラクターと説明 |
|---|
StaticMethodMatcher() |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | isRuntime() この MethodMatcher は動的ですか、つまり、2-arg matches メソッドが true を返す場合でも、実行時に MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) メソッドで最後の呼び出しを行う必要がありますか? |
boolean | matches(MethodSE method, ClassSE<?> targetClass, ObjectSE... args) このメソッドに静的に一致している必要があるランタイム(動的)一致があるかどうかを確認します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEmatchespublic final boolean isRuntime()
MethodMatchertrue を返す場合でも、実行時に MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) メソッドで最後の呼び出しを行う必要がありますか? AOP プロキシの作成時に呼び出すことができ、各メソッド呼び出しの前に再度呼び出す必要はありません。
MethodMatcher の isRuntime MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) メソッドによる実行時一致が必要かどうか public final boolean matches(MethodSE method, ClassSE<?> targetClass, ObjectSE... args)
MethodMatcher このメソッドが呼び出されるのは、2-arg matches メソッドが特定のメソッドとターゲットクラスの true を返し、MethodMatcher.isRuntime() メソッドが true を返す場合のみです。アドバイスが実行される可能性のある直前に呼び出され、after any アドバイスはアドバイスチェーンの前に実行されました。
MethodMatcher の matches method - 候補メソッド targetClass - ターゲットクラス args - メソッドの引数 MethodMatcher.matches(Method, Class)