public abstract class StaticMethodMatcher extends java.lang.Object implements MethodMatcher
TRUE
コンストラクターと説明 |
---|
StaticMethodMatcher() |
修飾子と型 | メソッドと説明 |
---|---|
boolean | isRuntime() この MethodMatcher は動的ですか、つまり、2-arg matches メソッドが true を返す場合でも、実行時に MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) メソッドで最後の呼び出しを行う必要がありますか? |
boolean | matches(java.lang.reflect.Method method, java.lang.Class<?> targetClass, java.lang.Object... args) このメソッドに静的に一致している必要があるランタイム(動的)一致があるかどうかを確認します。 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 final boolean matches(java.lang.reflect.Method method, java.lang.Class<?> targetClass, java.lang.Object... args)
MethodMatcher
このメソッドが呼び出されるのは、2-arg matches メソッドが特定のメソッドとターゲットクラスの true
を返し、MethodMatcher.isRuntime()
メソッドが true
を返す場合のみです。アドバイスが実行される可能性のある直前に呼び出され、after any アドバイスはアドバイスチェーンの前に実行されました。
MethodMatcher
の matches
method
- 候補メソッド targetClass
- ターゲットクラス args
- メソッドの引数 MethodMatcher.matches(Method, Class)