net.sf.saxon.instruct
Class Message
- SourceLocator, EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator, TailCallReturner
An xsl:message element in the stylesheet.
assembleParams , assembleTunnelParams , computeCardinality , computeSpecialProperties , createsNewNodes , dynamicError , evaluateAsString , evaluateItem , getImplementationMethod , getInstructionInfo , getInstructionNameCode , getItemType , getSourceLocator , isXSLT , iterate , process , processLeavingTail , promote , promoteInst , simplify |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
Message
public Message(Expression select,
Expression terminate)
Create an xsl:message instruction
select
- the expression that constructs the message (composite of the select attribute
and the contained sequence constructor)terminate
- expression that calculates terminate = yes or no.
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface Expression
- the copy of the original expression
createsNewNodes
public final boolean createsNewNodes()
Determine whether this instruction creates new nodes.
This implementation returns true.
- createsNewNodes in interface Instruction
explain
public void explain(ExpressionPresenter out)
Diagnostic print of expression structure. The abstract expression tree
is written to the supplied output destination.
- explain in interface Expression
getCardinality
public int getCardinality()
Get the static cardinality. To avoid spurious compile-time type errors, we falsely declare that the
instruction returns zero or one items - this is always acceptable
- getCardinality in interface Expression
getInstructionNameCode
public int getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes
- getInstructionNameCode in interface Instruction
getItemType
public ItemType getItemType(TypeHierarchy th)
Get the item type. To avoid spurious compile-time type errors, we falsely declare that the
instruction can return anything
- getItemType in interface Instruction
th
- the type hierarchy cache
iterateSubExpressions
public 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)
- iterateSubExpressions in interface Expression
replaceSubExpression
public boolean replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression
- replaceSubExpression in interface Expression
original
- the original subexpressionreplacement
- the replacement subexpression
- true if the original subexpression is found
simplify
public Expression simplify(ExpressionVisitor visitor)
throws XPathException
Simplify an expression. This performs any static optimization (by rewriting the expression
as a different expression). The default implementation does nothing.
- simplify in interface Instruction
visitor
- an expression visitor
- the simplified expression
XPathException
- if an error is discovered during expression rewriting