Class StackTraceUtils

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Class<?> STACK_WALKER_CLASS
      The Class of java.lang.StackWalker that was introduced in JDK 9.
      static java.lang.String STACK_WALKER_CLASS_NAME
      The class name of java.lang.StackWalker that was introduced in JDK 9.
      static java.lang.Class<?> STACK_WALKER_OPTION_CLASS
      The Class of java.lang.StackWalker.Option that was introduced in JDK 9.
      static java.lang.String STACK_WALKER_OPTION_CLASS_NAME
      The class name of java.lang.StackWalker.Option that was introduced in JDK 9.
      static java.lang.Class<?> STACK_WALKER_STACK_FRAME_CLASS
      The Class of java.lang.StackWalker.StackFrame that was introduced in JDK 9.
      static java.lang.String STACK_WALKER_STACK_FRAME_CLASS_NAME
      The class name of java.lang.StackWalker.StackFrame that was introduced in JDK 9.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getCallerClassName()  
      static java.lang.StackTraceElement[] getStackTrace()
      Get the StackTraceElement array on the current thread
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STACK_WALKER_CLASS_NAME

        public static final java.lang.String STACK_WALKER_CLASS_NAME
        The class name of java.lang.StackWalker that was introduced in JDK 9.
        See Also:
        Constant Field Values
      • STACK_WALKER_OPTION_CLASS_NAME

        public static final java.lang.String STACK_WALKER_OPTION_CLASS_NAME
        The class name of java.lang.StackWalker.Option that was introduced in JDK 9.
        See Also:
        Constant Field Values
      • STACK_WALKER_STACK_FRAME_CLASS_NAME

        public static final java.lang.String STACK_WALKER_STACK_FRAME_CLASS_NAME
        The class name of java.lang.StackWalker.StackFrame that was introduced in JDK 9.
        See Also:
        Constant Field Values
      • STACK_WALKER_CLASS

        @Nullable
        public static final java.lang.Class<?> STACK_WALKER_CLASS
        The Class of java.lang.StackWalker that was introduced in JDK 9. (optional)
      • STACK_WALKER_OPTION_CLASS

        @Nullable
        public static final java.lang.Class<?> STACK_WALKER_OPTION_CLASS
        The Class of java.lang.StackWalker.Option that was introduced in JDK 9. (optional)
      • STACK_WALKER_STACK_FRAME_CLASS

        @Nullable
        public static final java.lang.Class<?> STACK_WALKER_STACK_FRAME_CLASS
        The Class of java.lang.StackWalker.StackFrame that was introduced in JDK 9. (optional)
    • Method Detail

      • getStackTrace

        public static java.lang.StackTraceElement[] getStackTrace()
        Get the StackTraceElement array on the current thread
        Returns:
        non-null
      • getCallerClassName

        public static java.lang.String getCallerClassName()