API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang. StackTraceElement View Source
Author(s)
Josh Bloch
Since
1.4
Version
Serial
Hierarchy
 Object
      StackTraceElement
Implements
 Serializable
Subclasses
Description
publicfinal class StackTraceElement
  An element in a stack trace, as returned by Throwable.getStackTrace().
See also:   
Constructors
public StackTraceElement (String declaringClass, String methodName, String fileName, int lineNumber)
  Creates a stack trace element representing the specified execution point.
Methods
Hide/Show inherited methods
public boolean equals (Object obj)
  Returns true if the specified object is another StackTraceElement instance representing the same execution point as this instance.
public String getClassName ()
  Returns the fully qualified name of the class containing the execution point represented by this stack trace element.
public String getFileName ()
  Returns the name of the source file containing the execution point represented by this stack trace element.
public int getLineNumber ()
  Returns the line number of the source line containing the execution point represented by this stack trace element.
public String getMethodName ()
  Returns the name of the method containing the execution point represented by this stack trace element.
public int hashCode ()
Returns a hash code value for this stack trace element.
public boolean isNativeMethod ()
  Returns true if the method containing the execution point represented by this stack trace element is a native method.
public String toString ()
  Returns a string representation of this stack trace element.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar