|
Final | |||||||||
| 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
StackTraceElement represents a stack frame.
Throwable.getStackTrace(),
Serialized Form| Constructor Summary | |
|---|---|
StackTraceElement(String cls,
String method,
String file,
int line)
Create a StackTraceElement from the parameters. |
|
| 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 |
getClassName()
Returns the full name (i.e. including package) of the class where this stack trace element is executing. |
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()
Returns the source file line number 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()
Returns a hash code value for this stack trace element. |
boolean |
isNativeMethod()
Returns true if the method name returned by
getMethodName() is implemented as a native method. |
String |
toString()
Returns a string representation of this stack trace element. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StackTraceElement(String cls,
String method,
String file,
int line)
cls - The class namemethod - The method namefile - The file nameline - The line number| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - the object to compare to
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()
public String getMethodName()
unknown method> if the name of the
method cannot be determined.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
|
Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||