CallerFinder

public final class CallerFinder

A helper class for determining callers of a specified class currently on the stack.

Functions

Link copied to clipboard
@Nullable()
public static @Nullable() StackTraceElement findCallerOf(Class<? extends Object> target, int skip)
Returns the stack trace element of the immediate caller of the specified class.
Link copied to clipboard
public static Array<StackTraceElement> getStackForCallerOf(Class<? extends Object> target, int maxDepth, int skip)
Returns a synthetic stack trace starting at the immediate caller of the specified target.