|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.StackTraceElement
public final class StackTraceElement
An implementation of this class is provided, but the documented constructor can be used by the VM specific implementation to create instances. StackTraceElement represents a stack frame.
Throwable.getStackTrace(),
Serialized Form| Field Summary | |
|---|---|
(package private) String |
declaringClass
|
(package private) String |
fileName
|
(package private) int |
lineNumber
|
(package private) String |
methodName
|
| Constructor Summary | |
|---|---|
StackTraceElement(String cls,
String method,
String file,
int line)
Constructs a StackTraceElement for an execution point. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
String declaringClass
String methodName
String fileName
int lineNumber
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - Object to compare with
true 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()
0.public String getMethodName()
public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object)public boolean isNativeMethod()
true if the method name returned by
getMethodName() is implemented as a native method.
public String toString()
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||