Class ExtendedStackTraceElement

  • All Implemented Interfaces:
    Serializable

    public final class ExtendedStackTraceElement
    extends Object
    implements Serializable
    Wraps and extends the concept of the JRE's final class StackTraceElement by adding more location information.

    Complements a StackTraceElement with:

    • exact: whether the class was obtained via sun.reflect.Reflection#getCallerClass(int)
    • location: a classpath element or a jar
    • version
    See Also:
    Serialized Form
    • Constructor Detail

      • ExtendedStackTraceElement

        public ExtendedStackTraceElement​(String declaringClass,
                                         String methodName,
                                         String fileName,
                                         int lineNumber,
                                         boolean exact,
                                         String location,
                                         String version)
        Called from Jackson for XML and JSON IO.
    • Method Detail

      • getClassName

        public String getClassName()
      • getExact

        public boolean getExact()
      • getFileName

        public String getFileName()
      • getLineNumber

        public int getLineNumber()
      • getLocation

        public String getLocation()
      • getMethodName

        public String getMethodName()
      • getVersion

        public String getVersion()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isNativeMethod

        public boolean isNativeMethod()