|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.saxonica.stream.TemplateInversion
public class TemplateInversion
This class represents the inversion of a template body
| Constructor Summary | |
|---|---|
TemplateInversion(Template originalTemplate,
Configuration config)
Create the Jackson inversion of a template, allowing the template to execute on a streamed input source. |
|
| Method Summary | |
|---|---|
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 the WatchMaker associated with this template, if any. |
void |
invert(NodeTest nodeTest)
Invert the body of the template. |
static TemplateInversion |
makeBuiltInTemplate(WatchMaker watchMaker)
Factory method to create built-in templates |
void |
setStackFrame(SlotManager frame)
Set the stackframe identifying the slots used for local variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateInversion(Template originalTemplate,
Configuration config)
originalTemplate - the template to be inverted| Method Detail |
|---|
public static TemplateInversion makeBuiltInTemplate(WatchMaker watchMaker)
public Watch getWatch(WatchManager wm,
Stack<XPathContext> contextStack)
throws XPathException
CopyOfWatch with that expression as its selection.
XPathExceptionpublic Template getOriginalTemplate()
public void invert(NodeTest nodeTest)
throws XPathException
nodeTest - The static item type of the context node for the template
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||