Java java.lang StackTraceElement fields, constructors, methods, implement or subclass

Example usage for Java java.lang StackTraceElement fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang StackTraceElement.

The text is from its open source code.

Constructor

StackTraceElement(String declaringClass, String methodName, String fileName, int lineNumber)
Creates a stack trace element representing the specified execution point.
StackTraceElement()

Method

booleanequals(Object obj)
Returns true if the specified object is another StackTraceElement instance representing the same execution point as this instance.
ClassgetClass()
Returns the runtime class of this Object .
StringgetClassName()
Returns the fully qualified name of the class containing the execution point represented by this stack trace element.
StringgetFileName()
Returns the name of the source file containing the execution point represented by this stack trace element.
intgetLineNumber()
Returns the line number of the source line containing the execution point represented by this stack trace element.
StringgetMethodName()
Returns the name of the method containing the execution point represented by this stack trace element.
inthashCode()
Returns a hash code value for this stack trace element.
booleanisNativeMethod()
Returns true if the method containing the execution point represented by this stack trace element is a native method.
StringtoString()
Returns a string representation of this stack trace element.