StackTraceElement represents a stack frame.
Public Member Functions | |
StackTraceElement (String cls, String method, String file, int line) | |
boolean | equals (Object obj) |
Compare this object with the object passed in. | |
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 () |
If available, returns the line number in the source 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 () |
Return this StackTraceElement objects hash code. | |
boolean | isNativeMethod () |
Returns true if the method name returned by getMethodName() is implemented as a native method. | |
String | toString () |
Return a String representing this StackTraceElement object. | |
Package Attributes | |
String | declaringClass |
String | methodName |
String | fileName |
int | lineNumber |
Private Member Functions | |
StackTraceElement () | |
Static Private Attributes | |
static final long | serialVersionUID = 6992337162326171013L |
java.lang.StackTraceElement.StackTraceElement | ( | String | cls, | |
String | method, | |||
String | file, | |||
int | line | |||
) |
Constructs a StackTraceElement
for an execution point.
cls | The fully qualified name of the class where execution is at. | |
method | The name of the method where execution is at. | |
file | The name of the file where execution is at or null . | |
line | The line of the file where execution is at, a negative number if unknown or -2 if the execution is in a native method. |
NullPointerException | if cls or method is null . |
java.lang.StackTraceElement.StackTraceElement | ( | ) | [private] |
Private, nullary constructor for VM use only.
boolean java.lang.StackTraceElement.equals | ( | Object | obj | ) |
String java.lang.StackTraceElement.getClassName | ( | ) |
Returns the full name (i.e.
including the package) of the class where this stack trace element is executing.
String java.lang.StackTraceElement.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.
null
value is returned. int java.lang.StackTraceElement.getLineNumber | ( | ) |
If available, returns the line number in the source for the class where this stack trace element is executing.
0
. String java.lang.StackTraceElement.getMethodName | ( | ) |
Returns the name of the method where this stack trace element is executing.
int java.lang.StackTraceElement.hashCode | ( | ) |
boolean java.lang.StackTraceElement.isNativeMethod | ( | ) |
Returns true
if the method name returned by getMethodName() is implemented as a native method.
String java.lang.StackTraceElement.toString | ( | ) |
Genereated on Tue Dec 9 14:09:48 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.