Package net.sf.saxon.trace
Class ContextStackFrame
java.lang.Object
net.sf.saxon.trace.ContextStackFrame
- Direct Known Subclasses:
ContextStackFrame.ApplyTemplates
,ContextStackFrame.BuiltInTemplateRule
,ContextStackFrame.CallingApplication
,ContextStackFrame.CallTemplate
,ContextStackFrame.ForEach
,ContextStackFrame.FunctionCall
,ContextStackFrame.VariableEvaluation
An entry on the context stack. A new entry is created every time the context changes. This is a
representation of the stack created on request; it does not hold live data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Subclass of ContextStackFrame representing an xsl:apply-templates call in XSLTstatic class
Subclass of ContextStackFrame representing a built-in template rule in XSLTstatic class
Subclass of ContextStackFrame representing the outermost stack frame, for the calling applicationstatic class
Subclass of ContextStackFrame representing an xsl:call-template instruction in XSLTstatic class
Subclass of ContextStackFrame representing an xsl:for-each instruction in XSLTstatic class
Subclass of ContextStackFrame representing a call to a user-defined function either in XSLT or XQuerystatic class
Subclass of ContextStackFrame representing the evaluation of a variable (typically a global variable) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the container of the instruction that caused this new context to be created.Get the value of the context item at this level of the context stackint
Get the line number of the location of the instruction that caused this new context to be createdGet the system ID representing the location of the instruction that caused this new context to be createdabstract void
print
(PrintStream out) Display a representation of the stack frame on the specified output streamvoid
setContainer
(Container container) Set the container of the instruction that caused this new context to be created.void
setContextItem
(Item contextItem) Set the value of the context item at this level of the context stackvoid
setLineNumber
(int lineNumber) Set the line number of the location of the instruction that caused this new context to be createdvoid
setSystemId
(String uri) Set the system ID representing the location of the instruction that caused this new context to be created
-
Constructor Details
-
ContextStackFrame
public ContextStackFrame()
-
-
Method Details
-
setSystemId
Set the system ID representing the location of the instruction that caused this new context to be created- Parameters:
uri
- the system ID (base URI/module URI) of the module containing the instruction
-
getSystemId
Get the system ID representing the location of the instruction that caused this new context to be created- Returns:
- the system ID (base URI/module URI) of the module containing the instruction
-
setLineNumber
public void setLineNumber(int lineNumber) Set the line number of the location of the instruction that caused this new context to be created- Parameters:
lineNumber
- the line number of the instruction within its containing module
-
getLineNumber
public int getLineNumber()Get the line number of the location of the instruction that caused this new context to be created- Returns:
- the line number of the instruction within its containing module
-
setContainer
Set the container of the instruction that caused this new context to be created. This will generally be an object such as an XSLT Template or a user-defined function- Parameters:
container
- the container of the instruction
-
getContainer
Get the container of the instruction that caused this new context to be created. This will generally be an object such as an XSLT Template or a user-defined function- Returns:
- the container of the instruction in the expression tree
-
setContextItem
Set the value of the context item at this level of the context stack- Parameters:
contextItem
- the context item as it was when this new context was created
-
getContextItem
Get the value of the context item at this level of the context stack- Returns:
- the context item as it was when this new context was created
-
print
Display a representation of the stack frame on the specified output stream- Parameters:
out
- the output stream
-