public abstract class MethodMatchers
extends java.lang.Object
MethodMatchers
を作成するための静的ユーティリティメソッド。MethodMatcher は、静的に(メソッドとターゲットクラスに基づいて)評価されるか、動的に(メソッド呼び出し時の引数に基づいて)さらに評価する必要があります。
ClassFilters
, Pointcuts
コンストラクターと説明 |
---|
MethodMatchers() |
修飾子と型 | メソッドと説明 |
---|---|
static MethodMatcher | intersection(MethodMatcher mm1, MethodMatcher mm2) 指定された MethodMatchers の両方が一致するすべてのメソッドに一致します。 |
static boolean | matches(MethodMatcher mm, java.lang.reflect.Method method, java.lang.Class<?> targetClass, boolean hasIntroductions) 指定された MethodMatcher を指定されたメソッドに適用し、 IntroductionAwareMethodMatcher をサポートします(該当する場合)。 |
static MethodMatcher | union(MethodMatcher mm1, MethodMatcher mm2) 指定された MethodMatchers のいずれか(または両方)が一致するすべてのメソッドに一致します。 |
public static MethodMatcher union(MethodMatcher mm1, MethodMatcher mm2)
mm1
- 最初の MethodMatchermm2
- 2 番目の MethodMatcherpublic static MethodMatcher intersection(MethodMatcher mm1, MethodMatcher mm2)
mm1
- 最初の MethodMatchermm2
- 2 番目の MethodMatcherpublic static boolean matches(MethodMatcher mm, java.lang.reflect.Method method, java.lang.Class<?> targetClass, boolean hasIntroductions)
IntroductionAwareMethodMatcher
をサポートします(該当する場合)。mm
- 適用する MethodMatcher (IntroductionAwareMethodMatcher かもしれません)method
- 候補メソッド targetClass
- ターゲットクラス hasIntroductions
- true
は、代わりに求めているオブジェクトが 1 つ以上の導入のサブジェクトである場合。それ以外の場合は false