|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.lang.StackTrace
The StackTrace
object represents a single stack frame
of information. The entire set of stack frames is represented as an
array of StackTrace
object.
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true |
java.lang.String |
getClassName()
Returns the name of the class. |
java.lang.String |
getFileName()
Returns the name of the source file. |
int |
getLineNumber()
Returns the line number in the source file. |
java.lang.String |
getMethodName()
Returns the name of the method. |
static StackTrace[] |
getStackTrace()
Returns the stack trace elements of the client. |
static StackTrace |
getStackTrace(int index)
Returns the specified stack trace element if it exists. |
static StackTrace[] |
getStackTrace(java.lang.Throwable throwable)
Returns all StackTrace s in an array of the
specified throwable. |
int |
hashCode()
Returns a hash code value for this stack trace element. |
boolean |
isNativeMethod()
Returns true if method is implemented
natively. |
java.lang.String |
toString()
Returns a representation of the stack frame element. |
static java.lang.String |
toString(StackTrace[] elements)
Returns a string representation of the stack trace elements. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public final java.lang.String getFileName()
"Unknown"
will
be returned.
public final java.lang.String getClassName()
public final java.lang.String getMethodName()
public final int getLineNumber()
-1
will be returned. If the parser determines the method is a
native, a -2 is returned.
public final boolean isNativeMethod()
true
if method is implemented
natively.
true
is native method; otherwise
false
public static final StackTrace[] getStackTrace(java.lang.Throwable throwable)
StackTrace
s in an array of the
specified throwable.
throwable
- throwable being parsed
StackTrace
s
java.lang.NullPointerException
- if throwable is null
java.lang.NullPointerException
- if stackTrace is null
java.lang.IllegalArgumentException
- if stackTrace is an empty
stringpublic static final StackTrace[] getStackTrace()
public static final StackTrace getStackTrace(int index)
null
is returned.
index
- index of the stack trace element to return
null
public final java.lang.String toString()
public static final java.lang.String toString(StackTrace[] elements)
elements
- stack trace elements to stringify
public boolean equals(java.lang.Object obj)
true if the specified object is another
StackTrace instance representing the same
execution point as this instance. Two stack trace elements
a and b are equal if and only if:
equals(a.getFileName(), b.getFileName()) &&
a.getLineNumber() == b.getLineNumber()) &&
equals(a.getClassName(), b.getClassName()) &&
equals(a.getMethodName(), b.getMethodName())
where equals is defined as:
static boolean equals(Object a, Object b) {
return a==b || (a != null && a.equals(b));
}
- Parameters:
obj
- the object to be compared with this stack trace
element
- Returns:
true
if the specified object is another
StackTrace instance representing the same
execution point as this instance; otherwise false
public int hashCode()
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |