|
XQJ v1.0, Jan 14, 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.xquery.XQStackTraceElement
public class XQStackTraceElement
This class represents a frame in a stack trace, akin to the
java.lang.StackTraceElement
but for XQuery callstacks
instead of Java.
XQQueryException.getQueryStackTrace
,
Serialized FormConstructor Summary | |
---|---|
XQStackTraceElement(java.lang.String moduleURI,
int line,
int column,
int position,
javax.xml.namespace.QName function,
XQStackTraceVariable[] variables)
Construct an XQStackTraceElement object representing
a frame in a stack trace. |
Method Summary | |
---|---|
int |
getColumnNumber()
Gets the column number in the query string containing the execution point represented by this stack trace element. |
javax.xml.namespace.QName |
getFunctionQName()
Gets the QName of the function in which the error occurred,
or null if it occurred outside an enclosing function (in a main module). |
int |
getLineNumber()
Gets the line number in the query string containing the execution point represented by this stack trace element. |
java.lang.String |
getModuleURI()
Gets the module URI containing the execution point represented by this stack trace element. |
int |
getPosition()
Gets the character position in the query string containing the execution point represented by this stack trace element. |
XQStackTraceVariable[] |
getVariables()
Gets the variables in scope at this execution point, or null if no
variable value retrieval is possible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XQStackTraceElement(java.lang.String moduleURI, int line, int column, int position, javax.xml.namespace.QName function, XQStackTraceVariable[] variables)
XQStackTraceElement
object representing
a frame in a stack trace.
moduleURI
- the module URI containing the execution point representing
the stack trace element. null
when it is the main
module or when the module is unknownline
- the line number in the query string where the error occured.
Line numbering starts at 1
. -1
if unknowncolumn
- the column number in the query string where the error occured.
Column numbering starts at 1
. -1
if unknownposition
- the position in the query string where the error occured. This
is a 0
based position. -1 if unknownfunction
- the QName
of the function in which the exception occurred,
or null
if it occurred outside an enclosing functionvariables
- the variables in scope at this execution point,
or null
if no variable value retrieval is possible
Method Detail |
---|
public java.lang.String getModuleURI()
null
when it is the main module or when the module is
unknown.
null
public int getPosition()
This is a 0
based position. -1
if unknown.
public int getLineNumber()
Line numbering starts at 1
. -1
is returned
if the line number is unknown. If the implementation does not support this method,
it must return -1
public int getColumnNumber()
Column numbering starts at 1
. -1
is returned
if the column number is unknown. If the implementation does not support this method,
it must return -1
public javax.xml.namespace.QName getFunctionQName()
QName
of the function in which the error occurred,
or null
if it occurred outside an enclosing function (in a main module).
QName
of the function in which the error
occurred for this stack element or null
if it
occurred outside an enclosing functionpublic XQStackTraceVariable[] getVariables()
null
if no
variable value retrieval is possible.
null
if no variable value retrieval is
possible.
|
XQJ v1.0, Jan 14, 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |