public class ExtendedStackTraceElement
extends java.lang.Object
| Constructor and Description |
|---|
ExtendedStackTraceElement(java.lang.Class<?> clazz,
java.lang.reflect.Method method,
java.lang.String fileName,
int lineNumber,
int bci) |
ExtendedStackTraceElement(java.lang.StackTraceElement ste) |
ExtendedStackTraceElement(java.lang.StackTraceElement ste,
java.lang.Class<?> clazz,
java.lang.reflect.Member method,
int bci) |
ExtendedStackTraceElement(java.lang.String declaringClassName,
java.lang.String methodName,
java.lang.String fileName,
int lineNumber,
java.lang.Class<?> clazz,
java.lang.reflect.Member method,
int bci) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getBytecodeIndex() |
java.lang.String |
getClassName()
Returns the fully qualified name of the class containing the
execution point represented by this stack trace element.
|
java.lang.Class<?> |
getDeclaringClass() |
java.lang.String |
getFileName()
Returns the name of the source file containing the execution point
represented by this stack trace element.
|
int |
getLineNumber()
Returns the line number of the source line containing the execution
point represented by this stack trace element.
|
java.lang.reflect.Member |
getMethod() |
java.lang.String |
getMethodName()
Returns the name of the method containing the execution point
represented by this stack trace element.
|
java.lang.StackTraceElement |
getStackTraceElement() |
int |
hashCode() |
boolean |
isNativeMethod()
Returns true if the method containing the execution point
represented by this stack trace element is a native method.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.reflect.Member m) |
public ExtendedStackTraceElement(java.lang.StackTraceElement ste)
public ExtendedStackTraceElement(java.lang.StackTraceElement ste,
java.lang.Class<?> clazz,
java.lang.reflect.Member method,
int bci)
public ExtendedStackTraceElement(java.lang.Class<?> clazz,
java.lang.reflect.Method method,
java.lang.String fileName,
int lineNumber,
int bci)
public ExtendedStackTraceElement(java.lang.String declaringClassName,
java.lang.String methodName,
java.lang.String fileName,
int lineNumber,
java.lang.Class<?> clazz,
java.lang.reflect.Member method,
int bci)
public java.lang.String getFileName()
SourceFile attribute of the relevant class
file (as per The Java Virtual Machine Specification, Section
4.7.7). In some systems, the name may refer to some source code unit
other than a file, such as an entry in source repository.null if
this information is unavailable.public int getLineNumber()
LineNumberTable attribute of the relevant
class file (as per The Java Virtual Machine
Specification, Section 4.7.8).public java.lang.String getClassName()
Class containing
the execution point represented by this stack trace element.public java.lang.String getMethodName()
<init> or
<clinit>, as per Section 3.9 of The Java Virtual
Machine Specification.public boolean isNativeMethod()
true if the method containing the execution point
represented by this stack trace element is a native method.public java.lang.Class<?> getDeclaringClass()
public int getBytecodeIndex()
public java.lang.reflect.Member getMethod()
public java.lang.StackTraceElement getStackTraceElement()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.reflect.Member m)