StackTraceElement

public class StackTraceElement extends Object
implements Serializable

Simple iOS version of java.lang.StackTraceElement.

Public Constructor Summary

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

Public Method Summary

boolean
equals(Object obj)
Returns true if the specified object is another StackTraceElement instance representing the same execution point as this instance.
String
String
int
String
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 Method Summary

Public Constructors

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

Parameters
className
methodName
fileName
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.