Package com.saxonica.ee.stream
Class ComponentInversion
java.lang.Object
com.saxonica.ee.stream.ComponentInversion
This class represents the inversion of a template or function body
-
Constructor Summary
ConstructorsConstructorDescriptionComponentInversion
(Expression body) Create the Jackson inversion of a template or function, allowing the template or function to execute on a streamed input source. -
Method Summary
Modifier and TypeMethodDescriptionvoid
explain
(ExpressionPresenter presenter) Output diagnostic explanation to an ExpressionPresenterGet the stackframe identifying the slots used for local variablesgetWatch
(WatchManager wm, ItemFeed result, XPathContext context) Get a Watch associated with this template, if any.void
invert
(boolean isW3CStreamable) Invert the body of the template.void
setStackFrame
(SlotManager frame) Set the stackframe identifying the slots used for local variables
-
Constructor Details
-
ComponentInversion
Create the Jackson inversion of a template or function, allowing the template or function to execute on a streamed input source.- Parameters:
body
- the body of the template to be inverted
-
-
Method Details
-
getWatch
Get a Watch associated with this template, if any. This creates a watch to implement the "drill-down" instruction of the inverted template, for example if the drill-down instruction is<xsl:copy-of select="a/b/c">
then it returns aCopyOfFeed
with that expression as its selection.- Parameters:
wm
- the WatchManager which keeps track of all active Watchesresult
- the destination for the output of this Watchcontext
- the stack of dynamic context objects for the active Watches- Returns:
- the Watch if there is one, or null otherwise.
- Throws:
XPathException
- if an error occurs
-
invert
Invert the body of the template.- Throws:
XPathException
- if the template is non-streamable
-
setStackFrame
Set the stackframe identifying the slots used for local variables- Parameters:
frame
- the stack frame skeleton
-
getStackFrame
Get the stackframe identifying the slots used for local variables- Returns:
- the stack frame skeleton
-
getInversion
-
explain
Output diagnostic explanation to an ExpressionPresenter- Parameters:
presenter
- the destination for the output- Throws:
XPathException
-