public class TemplateRuleEE extends TemplateRule
body, matchPattern, slaveCopies
Constructor and Description |
---|
TemplateRuleEE()
Create a template rule
|
Modifier and Type | Method and Description |
---|---|
TemplateRule |
copy()
Create a copy of a template rule.
|
TemplateRuleInitializer |
getInitializer() |
ComponentInversion |
getInversion() |
void |
initialize()
Ensure that any first-time initialization has been done.
|
boolean |
isActuallyStreamable(java.util.List<java.lang.String> reasons)
Ask whether this template satisfies the rules for a guaranteed streamable template
|
boolean |
isDeclaredStreamable()
Ask whether or not this template is declared as streamable
|
void |
makeInversion()
Generate the inversion of the expression comprising the body of a template rules.
|
void |
prepareInitializer(Compilation compilation,
ComponentDeclaration decl,
StructuredQName modeName)
Prepare for JIT compilation.
|
void |
setDeclaredStreamable(boolean streamable)
Say whether or not this template is declared as streamable
|
void |
setInitializer(TemplateRuleInitializer initializer) |
apply, applyLeavingTail, copyTo, explainProperties, export, getBody, getColumnNumber, getComponentKind, getConstructType, getContainerGranularity, getInterpretedBody, getLineNumber, getLocalParams, getMatchPattern, getPackageData, getPublicId, getRequiredContextItemType, getRequiredType, getRules, getStackFrameMap, getSystemId, hasRequiredParams, isAbsentFocus, registerRule, saveLocation, setBody, setChildExpression, setContextItemRequirements, setHasRequiredParams, setLineNumber, setMatchPattern, setPackageData, setRequiredType, setStackFrameMap, setSystemId, updateSlaveCopies
public void setDeclaredStreamable(boolean streamable)
setDeclaredStreamable
in class TemplateRule
streamable
- true if the template belongs to a streamable mode; set to false if it does not belong
to a streamable mode, or if it is found that the template is not actually streamable, and fallback
to non-streaming has been requested.public boolean isDeclaredStreamable()
isDeclaredStreamable
in class TemplateRule
public void setInitializer(TemplateRuleInitializer initializer)
public TemplateRuleInitializer getInitializer()
public void prepareInitializer(Compilation compilation, ComponentDeclaration decl, StructuredQName modeName)
prepareInitializer
in class TemplateRule
compilation
- the XSLT compilationdecl
- the component declaration of this template rulepublic void initialize() throws XPathException
initialize
in class TemplateRule
XPathException
public TemplateRule copy()
copy
in class TemplateRule
public boolean isActuallyStreamable(java.util.List<java.lang.String> reasons)
reasons
- the caller may supply a list which on return will contain explanations
for why the template is not streamable, suitable for inclusion in error messagespublic void makeInversion() throws XPathException
XPathException
public ComponentInversion getInversion() throws XPathException
XPathException
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.