net.sf.saxon.instruct
public class While extends Instruction
| Constructor Summary | |
|---|---|
| While(Expression test, Expression action) | |
| Method Summary | |
|---|---|
| boolean | createsNewNodes()
Determine whether this instruction creates new nodes.
|
| void | display(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure. |
| Expression | getActionExpression()
Get the action expression (the content of the for-each) |
| int | getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes |
| ItemType | getItemType(TypeHierarchy th)
Get the item type of the items returned by evaluating this instruction
|
| Iterator | iterateSubExpressions()
Get all the XPath expressions associated with this instruction
(in XSLT terms, the expression present on attributes of the instruction,
as distinct from the child instructions in a sequence construction) |
| Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType) |
| TailCall | processLeavingTail(XPathContext context) |
| protected void | promoteInst(PromotionOffer offer)
Handle promotion offers, that is, non-local tree rewrites. |
| Expression | simplify(StaticContext env)
Simplify an expression. |
| Expression | typeCheck(StaticContext env, ItemType contextItemType) |
Parameters: level indentation level for this expression out
Returns: the string "saxon:while"
Parameters: th
Returns: the static item type of the instruction
Parameters: offer The type of rewrite being offered
Throws: XPathException
Returns: the simplified expression
Throws: XPathException if an error is discovered during expression rewriting