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