net.sf.saxon.instruct
public class Block extends Instruction
Constructor Summary | |
---|---|
Block() |
Method Summary | |
---|---|
void | checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole)
Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. |
boolean | createsNewNodes()
Determine whether this instruction creates new nodes.
|
void | display(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure. |
static void | displayChildren(Expression[] children, int level, NamePool pool, PrintStream out)
Display the children of an instruction for diagostics |
int | getCardinality()
Determine the cardinality of the expression |
Expression[] | getChildren()
Get the children of this instruction |
int | getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by this expression |
SequenceIterator | iterate(XPathContext context)
Iterate over the results of all the child expressions |
Iterator | iterateSubExpressions() |
static Expression | makeBlock(Expression e1, Expression e2) |
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. |
void | setChildren(Expression[] children)
Set the children of this instruction |
Expression | simplify(StaticContext env)
Simplify an expression. |
Expression | typeCheck(StaticContext env, ItemType contextItemType) |
Parameters: level indentation level for this expression out
Returns: the children of this instruction, as an array of Instruction objects. May return either a zero-length array or null if there are no children
Parameters: th
Returns: the data type
Parameters: offer The type of rewrite being offered
Throws: XPathException
Parameters: children The instructions that are children of this instruction
Returns: the simplified expression
Throws: XPathException if an error is discovered during expression rewriting