|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mondemand.util.ClassUtils
public class ClassUtils
Various class utilities that are used when the user doesn't specify parameters in the API. These methods do not usually perform very well due to the need to obtain stack traces, so it is almost always preferred for the user to specify these parameters in the MonDemand API instead of trying to determine them using this class at runtime.
Constructor Summary | |
---|---|
ClassUtils()
|
Method Summary | |
---|---|
static String |
getCallingClass(int depth)
Returns the calling class from the depth specified. |
static int |
getCallingLine(int depth)
Returns the calling line number from the depth specified. |
static String |
getMainClass()
Returns the top-level class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassUtils()
Method Detail |
---|
public static String getMainClass()
public static String getCallingClass(int depth)
depth
- the depth to traverse in the stack
public static int getCallingLine(int depth)
depth
- the depth to traverse in the stack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |