public class XQStackTraceElement
extends java.lang.Object
implements java.io.Serializable
java.lang.StackTraceElement
but for XQuery callstacks
instead of Java.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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. |
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 unknown
function
- 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 possiblepublic java.lang.String getModuleURI()
null
when it is the main module or when the module is
unknown.null
public int getPosition()
0
based position. -1
if unknown.public int getLineNumber()
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()
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.Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.