public class ComposablePointcut extends java.lang.Object implements Pointcut, java.io.Serializable
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(java.lang.Object other) |
ClassFilter | getClassFilter() このポイントカットの ClassFilter を返します。 |
MethodMatcher | getMethodMatcher() このポイントカットの MethodMatcher を返します。 |
int | hashCode() |
ComposablePointcut | intersection(ClassFilter other) 指定された ClassFilter との交差を適用します。 |
ComposablePointcut | intersection(MethodMatcher other) 指定された MethodMatcher との交差を適用します。 |
ComposablePointcut | intersection(Pointcut other) 指定されたポイントカットとの交差を適用します。 |
java.lang.String | toString() |
ComposablePointcut | union(ClassFilter other) 与えられた ClassFilter でユニオンを適用します。 |
ComposablePointcut | union(MethodMatcher other) 与えられた MethodMatcher でユニオンを適用します。 |
ComposablePointcut | union(Pointcut other) 与えられたポイントカットでユニオンを適用します。 |
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()
PointcutPointcut 内の getClassFilter null ではない)public MethodMatcher getMethodMatcher()
PointcutPointcut 内の getMethodMatcher null ではない)public boolean equals(java.lang.Object other)
java.lang.Object の equals public int hashCode()
java.lang.Object の hashCode public java.lang.String toString()
java.lang.Object の toString