java.io.Serializable
, javax.xml.transform.SourceLocator
, LocationProvider
, Container
, InstructionInfoProvider
public class Template extends Procedure implements InstructionInfoProvider
Constructor | Description |
---|---|
Template() |
Modifier and Type | Method | Description |
---|---|---|
void |
apply(XPathContext context,
Rule rule) |
Process the template, without returning any tail calls
|
TailCall |
applyLeavingTail(XPathContext context,
Rule rule) |
Process this template, with the possibility of returning a tail call package if the template
contains any tail calls that are to be performed by the caller.
|
TailCall |
expand(XPathContext context) |
Expand the template.
|
int |
getFingerprint() |
Get the namepool fingerprint of the name of the template (if it is named)
|
InstructionInfo |
getInstructionInfo() |
Get the InstructionInfo details about the construct.
|
int |
getMinImportPrecedence() |
|
int |
getPrecedence() |
|
boolean |
hasBadParentPointer() |
Diagnostic method
|
boolean |
hasRequiredParams() |
|
void |
init(int templateFingerprint,
int precedence,
int minImportPrecedence) |
|
void |
setBody(Expression body) |
|
void |
setHasRequiredParams(boolean has) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBody, getColumnNumber, getExecutable, getHostLanguage, getLineNumber, getLineNumber, getLocationProvider, getPublicId, getStackFrameMap, getSystemId, getSystemId, replaceSubExpression, setExecutable, setHostLanguage, setLineNumber, setStackFrameMap, setSystemId
public void init(int templateFingerprint, int precedence, int minImportPrecedence)
public void setBody(Expression body)
public int getFingerprint()
public int getPrecedence()
public int getMinImportPrecedence()
public void setHasRequiredParams(boolean has)
public boolean hasRequiredParams()
public void apply(XPathContext context, Rule rule) throws XPathException
context
- The dynamic context, giving access to the current node,rule
- XPathException
public TailCall applyLeavingTail(XPathContext context, Rule rule) throws XPathException
XPathException
public TailCall expand(XPathContext context) throws XPathException
XPathException
public InstructionInfo getInstructionInfo()
getInstructionInfo
in interface InstructionInfoProvider
public boolean hasBadParentPointer()