|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockejb.interceptor.ClassPointcut
Tests if the given class matches the class provided to the constructor of ClassPointcut.
Constructor Summary | |
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 |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.Method Detail |
public boolean matchesJointpoint(java.lang.reflect.Method method)
matchesJointpoint
in interface Pointcut
method
- method being invoked
public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |