Constructor and Description |
---|
ClassPointcut(java.lang.Class clazz)
Creates a new instance of ClassPoincut
It will not match subclasses.
|
ClassPointcut(java.lang.Class clazz,
boolean matchSubclasses)
Creates a new instance of ClassPoincut
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the given object is of type ClassPointcut and
it handles the same class and handlesSubclasses flag is set to the
same value
|
int |
hashCode() |
boolean |
matchesJointpoint(java.lang.reflect.Method method)
Tests if the class of the provided method is the same with the
the class provided to the constructor of this pointcut.
|
public ClassPointcut(java.lang.Class clazz)
clazz
- class to matchpublic ClassPointcut(java.lang.Class clazz, boolean matchSubclasses)
clazz
- class to matchmatchSubclasses
- if true, the pointcut will also match all subclasses/
subinterfaces of the provided class.public boolean matchesJointpoint(java.lang.reflect.Method method)
matchesJointpoint
in interface Pointcut
method
- method being invokedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object