public class TemplateInversion extends Object implements RuleTarget
Constructor and Description |
---|
TemplateInversion(Template originalTemplate,
Configuration config)
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
|
Template |
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,
Stack<XPathContext> contextStack)
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(Template originalTemplate, Configuration config)
originalTemplate
- the template to be invertedconfig
- the Saxon configurationpublic Watch getWatch(WatchManager wm, Stack<XPathContext> contextStack) throws XPathException
CopyOfWatch
with that expression as its selection.wm
- the WatchManager which keeps track of all active WatchescontextStack
- the stack of dynamic context objects for the active WatchesXPathException
- if an error occurspublic Template 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)
explain
in interface RuleTarget
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.