public class Stacks extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Stacks.StackTrace
栈内信息
|
public static List<Stacks.StackTrace> currentStacks()
public static List<Stacks.StackTrace> currentStacks(Exception e)
public static List<Stacks.StackTrace> currentStacks(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static Stacks.StackTrace currentStack(int index)
public static Stacks.StackTrace currentStack(Exception e, int index)
public static Stacks.StackTrace currentStack(StackTraceElement[] stackTrace, int index)
index - 栈下标stackTrace - stackTracepublic static Stacks.StackTrace currentStack()
public static Stacks.StackTrace currentStack(Exception e)
public static Stacks.StackTrace currentStack(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static String currentFile()
public static String currentFile(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static String currentClass()
public static String currentClass(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static String currentMethod()
public static String currentMethod(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static int currentLineNumber()
public static int currentLineNumber(Exception e)
public static int currentLineNumber(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static boolean currentNative()
public static boolean currentNative(Exception e)
public static boolean currentNative(StackTraceElement[] stackTrace)
stackTrace - stackTracepublic static Stacks.StackTrace toStackTrace(StackTraceElement e)
e - StackTraceElementpublic static List<Stacks.StackTrace> toStackTraces(StackTraceElement[] es)
es - StackTraceElementCopyright © 2025. All rights reserved.