StackTraceElement - JRE Emulation | JRE Emulation
public class

StackTraceElement

extends Object
implements Serializable
java.lang.Object
   ↳ java.lang.StackTraceElement

Class Overview

Simple iOS version of java.lang.StackTraceElement.

Summary

Public Constructors
StackTraceElement(String className, String methodName, String fileName, int lineNumber)
Public Methods
boolean equals(Object obj)
Returns true if the specified object is another StackTraceElement instance representing the same execution point as this instance.
String getClassName()
String getFileName()
int getLineNumber()
String getMethodName()
int hashCode()
Returns a hash code value for this stack trace element.
String toString()
Returns a string containing a concise, human-readable description of this object.
Inherited Methods
[Expand]
From class java.lang.Object

Public Constructors

public StackTraceElement (String className, String methodName, String fileName, int lineNumber)

Public Methods

public boolean equals (Object obj)

Returns true if the specified object is another StackTraceElement instance representing the same execution point as this instance. Two stack trace elements a and b are equal if and only if:

     equals(a.getFileName(), b.getFileName()) &&
     a.getLineNumber() == b.getLineNumber()) &&
     equals(a.getClassName(), b.getClassName()) &&
     equals(a.getMethodName(), b.getMethodName())
 
where equals has the semantics of Objects.equals.

Parameters
obj the object to be compared with this stack trace element.
Returns
  • true if the specified object is another StackTraceElement instance representing the same execution point as this instance.

public String getClassName ()

public String getFileName ()

public int getLineNumber ()

public String getMethodName ()

public int hashCode ()

Returns a hash code value for this stack trace element.

Returns
  • this object's hash code.

public String toString ()

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

   getClass().getName() + '@' + Integer.toHexString(hashCode())

See Writing a useful toString method if you intend implementing your own toString method.

Returns
  • a printable representation of this object.