java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, EvaluableItem, SequenceIterable, TailCallReturner, InstructionInfo, org.xml.sax.Locatorpublic final class ValueOf extends SimpleNodeConstructor
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticPropertiesselect| Constructor | Description |
|---|---|
ValueOf(Expression select,
boolean disable,
boolean noNodeIfEmpty) |
Create a new ValueOf expression
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkPermittedContents(SchemaType parentType,
StaticContext env,
boolean whole) |
Check statically that the results of the expression are capable of constructing the content
of a given schema type.
|
int |
computeCardinality() |
Get the cardinality of the sequence returned by evaluating this instruction
|
Expression |
convertToStringJoin(StaticContext env) |
Convert this value-of instruction to an expression that delivers the string-value of the resulting
text node.
|
Expression |
copy() |
Copy an expression.
|
Item |
evaluateItem(XPathContext context) |
Evaluate this expression, returning the resulting text node to the caller
|
void |
explain(ExpressionPresenter out) |
Diagnostic print of expression structure.
|
int |
getInstructionNameCode() |
Get the name of this instruction for diagnostic and tracing purposes
|
ItemType |
getItemType(TypeHierarchy th) |
Get the item type of the items returned by evaluating this instruction
|
int |
getOptions() |
Test for any special options such as disable-output-escaping
|
boolean |
isDisableOutputEscaping() |
Test whether disable-output-escaping was requested
|
boolean |
isNumberingInstruction() |
Determine whether this is really an xsl:number instruction
|
void |
localTypeCheck(ExpressionVisitor visitor,
ItemType contextItemType) |
Method to perform type-checking specific to the kind of instruction
|
TailCall |
processLeavingTail(XPathContext context) |
Process this instruction, sending the resulting text node to the current output destination
|
protected void |
promoteInst(PromotionOffer offer) |
Offer promotion for subexpressions.
|
void |
setIsNumberingInstruction() |
Indicate that this is really an xsl:nunber instruction
|
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getContainer, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, markTailFunctionCalls, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, toString, typeErrorassembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getImplementationMethod, getSourceLocator, isXSLT, process, promoteclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckContent, computeSpecialProperties, createsNewNodes, evaluateNameCode, expandChildren, getSelect, iterate, iterateSubExpressions, optimize, replaceSubExpression, setSelect, simplify, typeCheckpublic ValueOf(Expression select, boolean disable, boolean noNodeIfEmpty)
select - the select expressiondisable - true if disable-output-escaping is in forcenoNodeIfEmpty - true if the instruction is to return () if the select expression is (),
false if it is to return an empty text nodepublic void setIsNumberingInstruction()
public boolean isNumberingInstruction()
public int getInstructionNameCode()
getInstructionNameCode in class Instructionprotected void promoteInst(PromotionOffer offer) throws XPathException
promoteInst in class SimpleNodeConstructoroffer - 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 expressionXPathException - if any error is detectedpublic int getOptions()
public boolean isDisableOutputEscaping()
public ItemType getItemType(TypeHierarchy th)
InstructiongetItemType in class Instructionth - the type hierarchy cachepublic int computeCardinality()
SimpleNodeConstructorcomputeCardinality in class SimpleNodeConstructorpublic void localTypeCheck(ExpressionVisitor visitor, ItemType contextItemType)
SimpleNodeConstructorlocalTypeCheck in class SimpleNodeConstructorvisitor - an expression visitorcontextItemType - the static type of the context itempublic Expression copy()
copy in class Expressionpublic void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException
checkPermittedContents in class ExpressionparentType - The schema typeenv - the static contextwhole - true if this expression is to account for the whole value of the typeXPathException - if the expression doesn't match the required content typepublic Expression convertToStringJoin(StaticContext env)
env - the static evaluation contextpublic TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail in interface TailCallReturnerprocessLeavingTail in class Instructioncontext - the dynamic evaluation contextXPathExceptionpublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class SimpleNodeConstructorcontext - the dynamic evaluation contextXPathExceptionpublic void explain(ExpressionPresenter out)
explain in class Expressionout - the expression presenter used to display the structure