java.lang
public final class StackTraceElement extends Object implements Serializable
Since: 1.4
UNKNOWN: updated to 1.5
Constructor Summary | |
---|---|
StackTraceElement(String className, String methodName, String fileName, int lineNumber)
Create a new StackTraceElement representing a given source location.
|
Method Summary | |
---|---|
boolean | equals(Object o)
Returns true if the given object is also a StackTraceElement and all
attributes, except the native flag, are equal (either the same attribute
between the two elments are null, or both satisfy Object.equals).
|
String | getClassName()
Returns the fully qualified class name, or null if unknown.
|
String | getFileName()
Returns the name of the file, or null if unknown. |
int | getLineNumber()
Returns the line number in the file, or a negative number if unknown.
|
String | getMethodName()
Returns the method name in the class, or null if unknown. |
int | hashCode()
Returns the hashCode of this StackTraceElement. |
boolean | isNativeMethod()
Returns true if the method is native, or false if it is not or unknown.
|
String | toString()
Returns a string representation of this stack trace element. |
Parameters: className the fully qualified name of the class methodName the name of the method fileName the name of the file, null if unknown lineNumber the line in the file, negative if unknown, or -2 if this method is native
Since: 1.5
Parameters: o the object to compare
Returns: true if the two are equal
Returns: the class name
SourceFile
attribute of the class file
format, if present.
Returns: the file name
LineNumberTable
attribute
of the method in the class file format, if present.
Returns: the line number
<init>
; if the execution point is in the class
initializer, the name is <clinit>
.
Returns: the method name
Returns: the hashcode
Returns: whether the method is native
Returns: a string representation of this execution point