|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.reflection.ReflectionUtils
class ReflectionUtils extends Object
This class contains utility methods to determine which class called the current class to multiple levels of depth. Calls used to handle the groovy MOP are excluded from the level counting.
Constructor Summary | |
ReflectionUtils()
|
Method Summary | |
---|---|
static Class
|
getCallingClass()
Get the immediate calling class, ignoring MOP frames. |
static Class
|
getCallingClass(int matchLevel)
Get the called that is matchLevel stack frames before the call, ignoring MOP frames. |
static Class
|
getCallingClass(int matchLevel, Collection extraIgnoredPackages)
Get the called that is matchLevel stack frames before the call, ignoring MOP frames and desired exclude packages. |
static boolean
|
isCallingClassReflectionAvailable()
Determine whether or not the getCallingClass methods will return any sensible results. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
ReflectionUtils()
Method Detail |
---|
public static Class getCallingClass()
public static Class getCallingClass(int matchLevel)
public static Class getCallingClass(int matchLevel, Collection extraIgnoredPackages)
public static boolean isCallingClassReflectionAvailable()
Copyright © 2003-2009 The Codehaus. All rights reserved.