|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.StackTrace.Entry
A stack trace entry.
Field Summary | |
protected String |
className
The fully qualified class name for this entry |
static String |
DEFAULT
Default package token |
protected String |
lineNumber
The source file line number for this entry |
protected String |
methodName
The method name for this entry |
protected String |
sourceFileName
The source file name for this entry |
static String |
UNKNOWN
Unknown element token |
Constructor Summary | |
StackTrace.Entry(String raw)
Construct a new StackTrace entry. |
|
StackTrace.Entry(String className,
String methodName,
String sourceFileName,
String lineNumber)
Construct a new StackTrace entry. |
Method Summary | |
Object |
clone()
Returns a shallow cloned copy of this object. |
boolean |
equals(Object obj)
Check the equality of a given object with this. |
String |
getClassName()
Get the class name for this entry. |
String |
getFullMethodName()
Get the fully qualified method name for this entry. |
String |
getLineNumber()
Get the source file line number for this entry. |
String |
getMethodName()
Get the method name for this entry. |
String |
getShortClassName()
Get the short class name for this entry. |
String |
getSourceFileName()
Get the source file name for this entry. |
int |
hashCode()
Return the hash code of this object. |
protected void |
parse(String raw)
Parse a raw stack trace entry. |
void |
print()
Print this stack trace entry to System.err |
void |
print(PrintStream stream)
Print this stack trace entry. |
void |
print(PrintStream stream,
String prefix)
Print this stack trace entry. |
void |
print(PrintWriter writer)
Print this stack trace entry. |
void |
print(PrintWriter writer,
String prefix)
Print this stack trace entry. |
void |
print(String prefix)
Print this stack trace entry to System.err |
String |
toString()
Return a string representation of this. |
String |
toString(String prefix)
Return a string representation of this with the given prefix. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String UNKNOWN
public static final String DEFAULT
protected String className
protected String methodName
protected String sourceFileName
protected String lineNumber
Constructor Detail |
public StackTrace.Entry(String className, String methodName, String sourceFileName, String lineNumber)
className
- Fully qualified class name.methodName
- Method name.sourceFileName
- Source file name.lineNumber
- Source file line number.public StackTrace.Entry(String raw)
raw
- The raw stack trace entry.Method Detail |
protected void parse(String raw)
raw
- Raw stack trace.public String getClassName()
public String getShortClassName()
This is a macro for
Classes.stripPackageName(entry.getClassName())
public String getMethodName()
public String getFullMethodName()
This is a macro for
entry.getClassName() + "." + entry.getMethodName()
public String getSourceFileName()
public String getLineNumber()
public String toString(String prefix)
prefix
- Prefix for returned string.
prefixclassName.methodName(sourceFileName:lineNumber)
or prefixclassName.methodName(sourceFileName)
if there
is no line number.public String toString()
className.methodName(sourceFileName:lineNumber)
public int hashCode()
public boolean equals(Object obj)
obj
- Object to test equality with.
public Object clone()
public void print(PrintWriter writer, String prefix)
writer
- The writer to print to.prefix
- Prefix for string conversion.public void print(PrintWriter writer)
writer
- The writer to print to.public void print(PrintStream stream, String prefix)
stream
- The stream to print to.prefix
- Prefix for string conversion.public void print(PrintStream stream)
stream
- The stream to print to.public void print(String prefix)
System.err.
- Parameters:
prefix
- Prefix for string conversion.
public void print()
System.err.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |