public class StackTraceUtils extends Object
| Constructor and Description |
|---|
StackTraceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getInvocationLineNr(Class<?> invokedClass) |
static StackTraceElement[] |
getInvocationStackTrace(Class<?> invokedInterface) |
static StackTraceElement[] |
getInvocationStackTrace(Class<?> invokedInterface,
boolean included) |
static StackTraceElement[] |
getStackTraceStartingFrom(StackTraceElement[] stackTraceElements,
int index) |
public static int getInvocationLineNr(Class<?> invokedClass)
invokedClass - The class for which an invocation can be found in the current call stackpublic static StackTraceElement[] getInvocationStackTrace(Class<?> invokedInterface)
invokedInterface - Class/interface to which an invocation can be found in the current call stackpublic static StackTraceElement[] getInvocationStackTrace(Class<?> invokedInterface, boolean included)
public static StackTraceElement[] getStackTraceStartingFrom(StackTraceElement[] stackTraceElements, int index)
Copyright © 2016. All Rights Reserved.