|
![]() |
|||||||||
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 class that represents an entry in a stack trace, e.g., the stack trace of an exception. Each entry represents a call point, only the topmost entry represents the current position within a method.
Constructor Summary | |
---|---|
StackTraceElement(String declaringClass,
String methodName,
String fileName,
int lineNumber)
Constructor to create a StackTraceElement pointing to a specific execution point. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
equals returns true if this represents the same stack frame element as obj. |
String |
getClassName()
getClassName returns the fully qualified name of the class that contains the method this represents. |
String |
getFileName()
getFileName returns the name of the source file that contains the method represented by this frame. |
int |
getLineNumber()
getLineNumber returns the line number in the source file that contains the position represented by this. |
String |
getMethodName()
getMethodName returns the name of the method represented by this. |
int |
hashCode()
hashCode creates a hash code value for this stackframe element. |
boolean |
isNativeMethod()
isNativeMethod returns true iff the method represented by this stack frame is native (or compiled). |
String |
toString()
toString converts this stack frame element to a string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StackTraceElement(String declaringClass, String methodName, String fileName, int lineNumber)
declaringClass
- The name of the class declaring the method.methodName
- The name of the method in this frame.fileName
- The name of the source file declaring the class,
null if not available.lineNumber
- The line number in the source file, a negative
value if this information is not available, -2 if the method is native.
NullPointerException
- if declaringClass or methodName is null.Method Detail |
---|
public String getFileName()
public int getLineNumber()
public String getClassName()
public String getMethodName()
public boolean isNativeMethod()
public String toString()
". . ( : )"
The ":
public boolean equals(Object obj)
equals
in class Object
obj
- another obj.
public int hashCode()
hashCode
in class Object
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |