|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to be implemented by objects that can return information about the current call stack. Useful in AOP (as in AspectJ cflow concept) but not AOP-specific.
Method Summary | |
boolean |
under(Class clazz)
Detect whether we're under the given class, according to the current stack trace. |
boolean |
under(Class clazz,
String methodName)
Detect whether we're under the given class and method, according to the current stack trace. |
boolean |
underToken(String token)
Detect whether the current stack trace contains the given token. |
Method Detail |
public boolean under(Class clazz)
clazz
- the clazz to look forpublic boolean under(Class clazz, String methodName)
clazz
- the clazz to look formethodName
- the name of the method to look forpublic boolean underToken(String token)
token
- the token to look for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |