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(RebindingMap rebindings)
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.
|
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(java.lang.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
|
java.lang.String |
toShortString()
Produce a short string identifying the expression for use in error messages
|
allowExtractingCommonSubexpressions, alwaysCreatesNewNodes, checkContent, computeSpecialProperties, evaluateNodeName, getSelect, getStreamerName, isLocal, iterate, mayCreateNewNodes, operands, optimize, setSelect, typeCheck
assembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getExpressionName, getImplementationMethod, getInstructionName, getNetCost, getSourceLocator, isInstruction, isXSLT, process, someOperandCreatesNewNodes
addToPathMap, adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, computeDependencies, computeHashCode, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getCost, getDependencies, getEvaluationMethod, getExtraProperty, getIntegerBounds, getInterpretedExpression, getLocalRetainedStaticContext, getLocation, getObjectName, getPackageData, getParentExpression, getProperties, getProperty, getRetainedStaticContext, getScopingExpression, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStaticType, getStaticUType, hasCompatibleStaticContext, hashCode, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isLiftable, isMultiThreaded, isSameExpression, isStaticPropertiesKnown, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setFlattened, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toString, typeCheckChildren, typeError, unordered, verifyParentPointers, verifyParentPointers
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 java.lang.String toShortString()
Expression
toShortString
in class Expression
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(RebindingMap rebindings)
copy
in class Expression
rebindings
- 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(java.lang.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 void export(ExpressionPresenter out) throws XPathException
export
in interface ExportAgent
export
in class Expression
out
- the expression presenter used to display the structureXPathException
- if the export fails, for example if an expression is found that won't work
in the target environment.Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.