|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.expr.ComputedExpression | +--net.sf.saxon.instruct.Instruction | +--net.sf.saxon.instruct.InstructionWithChildren | +--net.sf.saxon.instruct.Block
Implements an imaginary xsl:block instruction which simply evaluates its contents. Used for top-level templates, xsl:otherwise, etc.
Field Summary |
Fields inherited from class net.sf.saxon.instruct.InstructionWithChildren |
children |
Fields inherited from class net.sf.saxon.expr.ComputedExpression |
locationId, staticProperties |
Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
Block()
|
Method Summary | |
void |
display(int level,
NamePool pool,
java.io.PrintStream out)
Diagnostic print of expression structure. |
int |
getCardinality()
Determine the cardinality of the expression |
ItemType |
getItemType()
Determine the data type of the items returned by this expression |
SequenceIterator |
iterate(XPathContext context)
Iterate over the results of all the child expressions |
java.lang.Object |
map(Item item,
XPathContext context,
java.lang.Object info)
Map one item to a sequence. |
TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction. |
protected void |
promoteInst(PromotionOffer offer)
Handle promotion offers, that is, non-local tree rewrites. |
Expression |
simplify(StaticContext env)
Simplify an expression. |
Methods inherited from class net.sf.saxon.instruct.InstructionWithChildren |
analyze, displayChildren, getChildren, iterateSubExpressions, processChildren, processChildrenLeavingTail, setChildren |
Methods inherited from class net.sf.saxon.instruct.Instruction |
appendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getImplementationMethod, getInstructionInfo, getInstructionNameCode, getSourceLocator, process, promote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.transform.SourceLocator |
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
public Block()
Method Detail |
public final ItemType getItemType()
getItemType
in interface Expression
getItemType
in class Instruction
public final int getCardinality()
getCardinality
in interface Expression
getCardinality
in class ComputedExpression
public Expression simplify(StaticContext env) throws XPathException
simplify
in interface Expression
simplify
in class InstructionWithChildren
XPathException
- if an error is discovered during expression
rewritingprotected void promoteInst(PromotionOffer offer) throws XPathException
promoteInst
in class InstructionWithChildren
offer
- The type of rewrite being offered
XPathException
public void display(int level, NamePool pool, java.io.PrintStream out)
display
in interface Expression
level
- indentation level for this expressionout
- pool
- NamePool used to expand any names appearing in the expressionpublic TailCall processLeavingTail(XPathContext context) throws XPathException
Instruction
processLeavingTail
in class Instruction
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
XPathException
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface Expression
iterate
in class Instruction
context
- supplies the context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic java.lang.Object map(Item item, XPathContext context, java.lang.Object info) throws XPathException
map
in interface MappingFunction
item
- The item to be mapped.
If context is supplied, this must be the same as context.currentItem().context
- The processing context. This is supplied only for mapping constructs that
set the context node, position, and size. Otherwise it is null.info
- Arbitrary information supplied by the creator of the MappingIterator. It must be
read-only and immutable for the duration of the iteration.
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |