public final class ValueOf extends SimpleNodeConstructor
selectOp
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 |
---|
ValueOf(Expression select,
boolean disable,
boolean noNodeIfEmpty)
Create a new ValueOf expression
|
Modifier and Type | Method and Description |
---|---|
void |
checkPermittedContents(SchemaType parentType,
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 |
convertToCastAsString()
Convert this value-of instruction to an expression that delivers the string-value of the resulting
text node as an untyped atomic value.
|
Expression |
copy()
Copy an expression.
|
NodeInfo |
evaluateItem(XPathContext context)
Evaluate this expression, returning the resulting text node to the caller
|
void |
export(ExpressionPresenter out)
Diagnostic print of expression structure.
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the ValueOf expression
|
int |
getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes
|
int |
getIntrinsicDependencies()
Determine the intrinsic dependencies of an expression, that is, those which are not derived
from the dependencies of its subexpressions.
|
ItemType |
getItemType()
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 |
isNoNodeIfEmpty() |
boolean |
isNumberingInstruction()
Determine whether this is really an xsl:number instruction
|
void |
localTypeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Method to perform type-checking specific to the kind of instruction
|
TailCall |
processLeavingTail(XPathContext context)
Process this instruction
|
void |
processValue(CharSequence value,
XPathContext context)
Process the value of the node, to create the new node.
|
void |
setIsNumberingInstruction()
Indicate that this is really an xsl:nunber instruction
|
checkContent, computeSpecialProperties, createsNewNodes, evaluateNodeName, getSelect, getStreamingAdjunct, iterate, operands, optimize, promoteChildren, setSelect, typeCheck
assembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getExpressionName, getImplementationMethod, getInstructionName, getNetCost, getSourceLocator, isXSLT, main, process, toStreamingPattern
addToPathMap, adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getCost, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getLocation, getObjectName, getPackageData, getParentExpression, getPosture, getPostureAndSweepIfKnown, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, optimizeForType, promote, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setFiltered, setFlattened, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toShortString, toString, typeCheckChildren, typeError, unordered
public 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 boolean isNoNodeIfEmpty()
public int getInstructionNameCode()
getInstructionNameCode
in class Instruction
public int getOptions()
public boolean isDisableOutputEscaping()
public ItemType getItemType()
Instruction
getItemType
in class Instruction
public int computeCardinality()
SimpleNodeConstructor
computeCardinality
in class SimpleNodeConstructor
public void localTypeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType)
SimpleNodeConstructor
localTypeCheck
in class SimpleNodeConstructor
visitor
- an expression visitorcontextItemType
- the static type of the context itempublic int getIntrinsicDependencies()
getIntrinsicDependencies
in class Expression
public Expression copy()
copy
in class Expression
public void checkPermittedContents(SchemaType parentType, boolean whole) throws XPathException
checkPermittedContents
in class Expression
parentType
- The schema typewhole
- 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 convertToCastAsString()
public TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class SimpleNodeConstructor
context
- the dynamic context of the transformationXPathException
- if a dynamic error occurs during the evaluation
of the instructionpublic void processValue(CharSequence value, XPathContext context) throws XPathException
processValue
in class SimpleNodeConstructor
value
- the string value of the new nodecontext
- the dynamic evaluation contextXPathException
public NodeInfo evaluateItem(XPathContext context) throws XPathException
evaluateItem
in class SimpleNodeConstructor
context
- the dynamic evaluation contextXPathException
public ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class Expression
public void export(ExpressionPresenter out)
export
in class Expression
out
- the expression presenter used to display the structureCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.