net.sf.saxon.instruct
public class Doctype extends Instruction
Constructor Summary | |
---|---|
Doctype(Expression content) |
Method Summary | |
---|---|
boolean | createsNewNodes()
Determine whether this instruction creates new nodes.
|
void | display(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure. |
int | getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes |
Iterator | iterateSubExpressions()
Get the immediate sub-expressions of this expression. |
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: an iterator containing the sub-expressions of this expression
Parameters: offer The type of rewrite being offered
Throws: XPathException
Returns: the simplified expression
Throws: net.sf.saxon.trans.XPathException if an error is discovered during expression rewriting