All methods return ComposablePointcut, so we can use concise idioms
like in the following example.
Pointcut pc = new ComposablePointcut()
.union(classFilter)
.intersection(methodMatcher)
.intersection(pointcut);
Pointcuts
| Modifier and Type | Field and Description |
|---|---|
| private ClassFilter | |
| private MethodMatcher | |
| private static final long | serialVersionUID
use serialVersionUID from Spring 1.2 for interoperability. |
| Access | Constructor and Description |
|---|---|
| public | ComposablePointcut()
Create a default ComposablePointcut, with |
| public | ComposablePointcut(Pointcut
the original Pointcut pointcut)Create a ComposablePointcut based on the given Pointcut. |
| public | ComposablePointcut(ClassFilter
the ClassFilter to use classFilter)Create a ComposablePointcut for the given ClassFilter,
with |
| public | ComposablePointcut(MethodMatcher
the MethodMatcher to use methodMatcher)Create a ComposablePointcut for the given MethodMatcher,
with |
| public | ComposablePointcut(ClassFilter
the ClassFilter to use classFilter, MethodMatcher the MethodMatcher to use methodMatcher)Create a ComposablePointcut for the given ClassFilter and MethodMatcher. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public ClassFilter | getClassFilter()
Implements org. Return the ClassFilter for this pointcut. |
| public MethodMatcher | getMethodMatcher()
Implements org. Return the MethodMatcher for this pointcut. |
| public int | |
| public ComposablePointcut | Returns: this composable pointcut (for call chaining)the ClassFilter to apply an intersection with other)Apply an intersection with the given ClassFilter. |
| public ComposablePointcut | Returns: this composable pointcut (for call chaining)the MethodMatcher to apply an intersection with other)Apply an intersection with the given MethodMatcher. |
| public ComposablePointcut | Returns: this composable pointcut (for call chaining)the Pointcut to apply an intersection with other)Apply an intersection with the given Pointcut. |
| public String | |
| public ComposablePointcut | Returns: this composable pointcut (for call chaining)the ClassFilter to apply a union with other)Apply a union with the given ClassFilter. |
| public ComposablePointcut | Returns: this composable pointcut (for call chaining)the MethodMatcher to apply a union with other)Apply a union with the given MethodMatcher. |
| public ComposablePointcut |
| classFilter | back to summary |
|---|---|
private ClassFilter classFilter
| |
| methodMatcher | back to summary |
|---|---|
private MethodMatcher methodMatcher
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID use serialVersionUID from Spring 1.2 for interoperability. | |
| ComposablePointcut | back to summary |
|---|---|
| public ComposablePointcut() Create a default ComposablePointcut, with | |
| ComposablePointcut | back to summary |
|---|---|
| public ComposablePointcut(Pointcut pointcut) Create a ComposablePointcut based on the given Pointcut.
| |
| ComposablePointcut | back to summary |
|---|---|
| public ComposablePointcut(ClassFilter classFilter) Create a ComposablePointcut for the given ClassFilter,
with
| |
| ComposablePointcut | back to summary |
|---|---|
| public ComposablePointcut(MethodMatcher methodMatcher) Create a ComposablePointcut for the given MethodMatcher,
with
| |
| ComposablePointcut | back to summary |
|---|---|
| public ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher) Create a ComposablePointcut for the given ClassFilter and MethodMatcher.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getClassFilter | back to summary |
|---|---|
| public ClassFilter getClassFilter() Implements org. Doc from org. Return the ClassFilter for this pointcut.
| |
| getMethodMatcher | back to summary |
|---|---|
| public MethodMatcher getMethodMatcher() Implements org. Doc from org. Return the MethodMatcher for this pointcut.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intersection | back to summary |
|---|---|
| public ComposablePointcut intersection(ClassFilter other) Apply an intersection with the given ClassFilter.
| |
| intersection | back to summary |
|---|---|
| public ComposablePointcut intersection(MethodMatcher other) Apply an intersection with the given MethodMatcher.
| |
| intersection | back to summary |
|---|---|
| public ComposablePointcut intersection(Pointcut other) Apply an intersection with the given Pointcut.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| union | back to summary |
|---|---|
| public ComposablePointcut union(ClassFilter other) Apply a union with the given ClassFilter.
| |
| union | back to summary |
|---|---|
| public ComposablePointcut union(MethodMatcher other) Apply a union with the given MethodMatcher.
| |
| union | back to summary |
|---|---|
| public ComposablePointcut union(Pointcut other) Apply a union with the given Pointcut. Note that for a Pointcut union, methods will only match if their original ClassFilter (from the originating Pointcut) matches as well. MethodMatchers and ClassFilters from different Pointcuts will never get interleaved with each other.
| |