public class ComposablePointcut extends ObjectSE implements Pointcut, SerializableSE
すべてのメソッドが ComposablePointcut
を返すため、次の例のように簡潔なイディオムを使用できます。
Pointcut pc = new ComposablePointcut() .union(classFilter) .intersection(methodMatcher) .intersection(pointcut);
コンストラクターと説明 |
---|
ComposablePointcut() ClassFilter.TRUE および MethodMatcher.TRUE を使用して、デフォルトの ComposablePointcut を作成します。 |
ComposablePointcut(ClassFilter classFilter) MethodMatcher.TRUE を使用して、指定された ClassFilter の ComposablePointcut を作成します。 |
ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher) 指定された ClassFilter および MethodMatcher の ComposablePointcut を作成します。 |
ComposablePointcut(MethodMatcher methodMatcher) ClassFilter.TRUE を使用して、指定された MethodMatcher の ComposablePointcut を作成します。 |
ComposablePointcut(Pointcut pointcut) 指定されたポイントカットに基づいて ComposablePointcut を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) |
ClassFilter | getClassFilter() このポイントカットの ClassFilter を返します。 |
MethodMatcher | getMethodMatcher() このポイントカットの MethodMatcher を返します。 |
int | hashCode() |
ComposablePointcut | intersection(ClassFilter other) 指定された ClassFilter との交差を適用します。 |
ComposablePointcut | intersection(MethodMatcher other) 指定された MethodMatcher との交差を適用します。 |
ComposablePointcut | intersection(Pointcut other) 指定されたポイントカットとの交差を適用します。 |
StringSE | toString() |
ComposablePointcut | union(ClassFilter other) 与えられた ClassFilter でユニオンを適用します。 |
ComposablePointcut | union(MethodMatcher other) 与えられた MethodMatcher でユニオンを適用します。 |
ComposablePointcut | union(Pointcut other) 与えられたポイントカットでユニオンを適用します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public ComposablePointcut()
ClassFilter.TRUE
および MethodMatcher.TRUE
を使用して、デフォルトの ComposablePointcut を作成します。public ComposablePointcut(Pointcut pointcut)
pointcut
- オリジナルのポイントカット public ComposablePointcut(ClassFilter classFilter)
MethodMatcher.TRUE
を使用して、指定された ClassFilter の ComposablePointcut を作成します。classFilter
- 使用する ClassFilterpublic ComposablePointcut(MethodMatcher methodMatcher)
ClassFilter.TRUE
を使用して、指定された MethodMatcher の ComposablePointcut を作成します。methodMatcher
- 使用する MethodMatcherpublic ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher)
classFilter
- 使用する ClassFiltermethodMatcher
- 使用する MethodMatcherpublic ComposablePointcut union(ClassFilter other)
other
- ユニオンを適用する ClassFilterpublic ComposablePointcut intersection(ClassFilter other)
other
- 交差を適用する ClassFilterpublic ComposablePointcut union(MethodMatcher other)
other
- ユニオンを適用する MethodMatcherpublic ComposablePointcut intersection(MethodMatcher other)
other
- 交差を適用する MethodMatcherpublic ComposablePointcut union(Pointcut other)
ポイントカットユニオンの場合、メソッドは元のポイントカットからの元の ClassFilter も一致する場合にのみ一致することに注意してください。異なるポイントカットの MethodMatchers と ClassFilters が相互にインターリーブされることはありません。
other
- ユニオンを適用するポイントカット public ComposablePointcut intersection(Pointcut other)
other
- 交差を適用するポイントカット public ClassFilter getClassFilter()
Pointcut
Pointcut
の getClassFilter
null
)public MethodMatcher getMethodMatcher()
Pointcut
Pointcut
の getMethodMatcher
null
)public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE