public class Message extends Instruction
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD
Constructor and Description |
---|
Message(Expression select,
Expression terminate,
Expression errorCode)
Create an xsl:message instruction
|
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Copy an expression.
|
boolean |
createsNewNodes()
Determine whether this instruction creates new nodes.
|
void |
export(ExpressionPresenter out)
Diagnostic print of expression structure.
|
int |
getCardinality()
Get the static cardinality.
|
Expression |
getErrorCode() |
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the Message expression
|
int |
getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes
|
ItemType |
getItemType()
Get the item type.
|
Expression |
getSelect() |
Expression |
getTerminate() |
Iterable<Operand> |
operands()
Get the immediate sub-expressions of this expression, with information about the relationship
of each expression to its parent expression.
|
TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction.
|
protected void |
promoteChildren(PromotionOffer offer)
Handle promotion offers, that is, non-local tree rewrites.
|
void |
setErrorCode(Expression errorCode) |
void |
setIsAssert(boolean isAssert)
Say whether this instruction is implementing xsl:message or xsl:assert
|
void |
setSelect(Expression select) |
void |
setTerminate(Expression terminate) |
assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, evaluateItem, getConstructType, getExpressionName, getImplementationMethod, getInstructionName, getNetCost, getSourceLocator, isXSLT, iterate, main, process, toStreamingPattern
addToPathMap, adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, getConfiguration, getCost, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLocation, getObjectName, getPackageData, getParentExpression, getPosture, getPostureAndSweepIfKnown, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStreamability, getStreamingAdjunct, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operandSparseList, optimize, optimizeChildren, optimizeForType, promote, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setFiltered, setFlattened, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toShortString, toString, typeCheck, typeCheckChildren, typeError, unordered
public Message(Expression select, Expression terminate, Expression errorCode)
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.errorCode
- expression used to compute the error codepublic Expression getSelect()
public void setSelect(Expression select)
public Expression getTerminate()
public void setTerminate(Expression terminate)
public Expression getErrorCode()
public void setErrorCode(Expression errorCode)
public Iterable<Operand> operands()
Expression
If the expression is a Callable, then it is required that the order of the operands returned by this function is the same as the order of arguments supplied to the corresponding call() method.
operands
in class Instruction
public void setIsAssert(boolean isAssert)
isAssert
- true if this is xsl:assert; false if it is xsl:messagepublic Expression copy()
copy
in class Expression
public int getInstructionNameCode()
getInstructionNameCode
in class Instruction
public ItemType getItemType()
getItemType
in class Instruction
public int getCardinality()
getCardinality
in class Expression
public final boolean createsNewNodes()
createsNewNodes
in class Instruction
protected void promoteChildren(PromotionOffer offer) throws XPathException
promoteChildren
in class Instruction
offer
- The type of rewrite being offeredXPathException
public TailCall processLeavingTail(XPathContext context) throws XPathException
Instruction
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class Instruction
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.XPathException
- if a dynamic error occurs during the evaluation
of the instructionpublic void export(ExpressionPresenter out)
export
in class Expression
out
- the expression presenter used to display the structurepublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class Expression
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.