public class LocalCapturer
extends java.lang.Object
| Constructor and Description |
|---|
LocalCapturer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
forEach(java.util.function.Consumer<LocalStackFrame> consumer)
Iterate over all stack frames of the current thread.
|
static LocalStackFrame[] |
getStackFrames()
Get all stack frames of the current thread.
|
static <T> T |
walk(java.util.function.Function<java.util.stream.Stream<LocalStackFrame>,T> function)
Walk over the stack frames of the current thread and return the result of the function.
|
public static void forEach(java.util.function.Consumer<LocalStackFrame> consumer)
consumer - The consumer to call for each stack framepublic static <T> T walk(java.util.function.Function<java.util.stream.Stream<LocalStackFrame>,T> function)
T - The type of the resultfunction - The function to call for each stack frameStackWalker#walk(Function)public static LocalStackFrame[] getStackFrames()