net.sf.saxon.instruct
public abstract class SimpleNodeConstructor extends Instruction
| Field Summary | |
|---|---|
| protected Expression | select |
| Constructor Summary | |
|---|---|
| SimpleNodeConstructor() | |
| Method Summary | |
|---|---|
| protected String | checkContent(String data, XPathContext context)
Check the content of the node, and adjust it if necessary. |
| int | computeSpecialProperties()
Get the static properties of this expression (other than its type). |
| boolean | createsNewNodes()
Determine whether this instruction creates new nodes.
|
| void | display(int level, NamePool pool, PrintStream out)
Display this instruction as an expression, for diagnostics |
| Item | evaluateItem(XPathContext context)
Evaluate as an expression. |
| protected int | evaluateNameCode(XPathContext context) |
| CharSequence | expandChildren(XPathContext context)
Expand the stylesheet elements subordinate to this one, returning the result
as a string. |
| Expression | getSelect() |
| SequenceIterator | iterate(XPathContext context) |
| Iterator | iterateSubExpressions() |
| abstract void | localTypeCheck(StaticContext env, ItemType contextItemType) |
| Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType) |
| protected void | promoteInst(PromotionOffer offer)
Offer promotion for subexpressions. |
| void | setSelect(Expression select, Configuration config) |
| Expression | simplify(StaticContext env) |
| Expression | typeCheck(StaticContext env, ItemType contextItemType)
The typeCheck() method is called in XQuery, where node constructors
are implemented as Expressions. |
Parameters: data the supplied content context the dynamic context
Returns: the original content, unless adjustments are needed
Throws: DynamicError if the content is invalid
Returns: a set of flags indicating static properties of this expression
Parameters: context The dynamic context for the transformation
Parameters: offer details of the offer, for example the offer to move expressions that don't depend on the context to an outer level in the containing expression
Throws: XPathException if any error is detected
Parameters: env The static context for the query
Returns: the rewritten expression
Throws: XPathException if any static errors are found in this expression or any of its children