public final class StackTraces extends Object
StackTraceElement & Co.| Modifier and Type | Method and Description |
|---|---|
static String |
getCallerMethodName(int depth)
Obtain the name of the method that is depth N way up the call stack from
invoking this.
|
static String |
getCallersCallerMethodName()
Obtain the name of the method that is the method calling this one.
|
public static String getCallersCallerMethodName()
getCallerMethodName(2), and is typically
what one wants when using this from another utility.public static String getCallerMethodName(int depth)
depth - depth into call stackCopyright © 2019 OpenDaylight. All rights reserved.