public final class StackTraceElement extends Object implements Serializable
Throwable.getStackTrace()
,
Serialized FormConstructor and Description |
---|
StackTraceElement(String cls,
String method,
String file,
int line)
Create a StackTraceElement from the parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if the specified object is another StackTraceElement instance
representing the same execution point as this instance.
|
String |
getClassName()
Returns the full name (i.e.
|
String |
getFileName()
If available, returns the name of the file containing the Java code
source which was compiled into the class where this stack trace element
is executing.
|
int |
getLineNumber()
Returns the source file line number for the class where this stack trace
element is executing.
|
String |
getMethodName()
Returns the name of the method where this stack trace element is
executing.
|
int |
hashCode()
Returns a hash code value for this stack trace element.
|
boolean |
isNativeMethod()
Returns
true if the method name returned by
getMethodName() is implemented as a native method. |
String |
toString()
Returns a string representation of this stack trace element.
|
public boolean equals(Object obj)
equals
in class Object
obj
- the object to compare totrue
if the object is the same as this object
false
if it is different from this object.Object.hashCode()
public String getClassName()
public String getFileName()
null
value is returned.public int getLineNumber()
public String getMethodName()
unknown method
> if the name of the
method cannot be determined.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
public boolean isNativeMethod()
true
if the method name returned by
getMethodName()
is implemented as a native method.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1993, 2025 IBM Corp. and others.