| |
|
| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.GeneralVariable net.sf.saxon.instruct.Assign
Assign | public class Assign extends GeneralVariable implements BindingReference(Code) | | saxon:assign element in stylesheet.
The saxon:assign element has mandatory attribute name and optional attribute expr.
It also allows xsl:extension-element-prefixes etc.
|
Constructor Summary | |
public | Assign() |
createsNewNodes | final public boolean createsNewNodes()(Code) | | Determine whether this instruction creates new nodes.
This implementation returns true: although the instruction doesn't create new
nodes, pretending that it does causes the optimizer to avoid pulling the instruction out of a loop.
|
getInstructionNameCode | public int getInstructionNameCode()(Code) | | Get the name of this instruction for diagnostic and tracing purposes
|
promote | public Expression promote(PromotionOffer offer) throws XPathException(Code) | | Offer promotion for this subexpression. This needs careful handling in the
case of saxon:assign
Parameters: offer - details of the offer, for example the offer to moveexpressions that don't depend on the context to an outer level inthe containing expression exception: net.sf.saxon.trans.XPathException - if any error is detected if the offer is not accepted, return this expression unchanged.Otherwise return the result of rewriting the expression to promotethis subexpression |
|
|
|