public class TemplateInversion extends Object
Constructor and Description |
---|
TemplateInversion(TemplateRule originalTemplate)
Create the Jackson inversion of a template, allowing the template to execute on a streamed input source.
|
Modifier and Type | Method and Description |
---|---|
void |
explain(ExpressionPresenter presenter)
Output diagnostic explanation to an ExpressionPresenter
|
TemplateRule |
getOriginalTemplate()
Get the original template of which this is an inversion
|
SlotManager |
getStackFrame()
Get the stackframe identifying the slots used for local variables
|
Watch |
getWatch(WatchManager wm,
Feed result,
XPathContext context)
Get a Watch associated with this template, if any.
|
void |
invert()
Invert the body of the template.
|
void |
setStackFrame(SlotManager frame)
Set the stackframe identifying the slots used for local variables
|
public TemplateInversion(TemplateRule originalTemplate)
originalTemplate
- the template to be invertedpublic Watch getWatch(WatchManager wm, Feed result, XPathContext context) throws XPathException
CopyOfFeed
with that expression as its selection.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 WatchesXPathException
- if an error occurspublic TemplateRule getOriginalTemplate()
public void invert() throws XPathException
XPathException
- if the template is non-streamablepublic void setStackFrame(SlotManager frame)
frame
- the stack frame skeletonpublic SlotManager getStackFrame()
public void explain(ExpressionPresenter presenter)
presenter
- the destination for the outputCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.