public final class ValueOf extends SimpleNodeConstructor
select
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
?????? |
---|
ValueOf(Expression select,
boolean disable,
boolean noNodeIfEmpty)
Create a new ValueOf expression
|
?????? | ????? |
---|---|
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
|
checkContent, computeSpecialProperties, createsNewNodes, evaluateNameCode, expandChildren, getSelect, iterate, iterateSubExpressions, optimize, replaceSubExpression, setSelect, simplify, typeCheck
assembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getImplementationMethod, getSourceLocator, isXSLT, process, promote
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, typeError
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 int getInstructionNameCode()
getInstructionNameCode
??? Instruction
protected void promoteInst(PromotionOffer offer) throws XPathException
promoteInst
??? SimpleNodeConstructor
offer
- 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)
Instruction
getItemType
??? Instruction
th
- the type hierarchy cachepublic int computeCardinality()
SimpleNodeConstructor
computeCardinality
??? SimpleNodeConstructor
public void localTypeCheck(ExpressionVisitor visitor, ItemType contextItemType)
SimpleNodeConstructor
localTypeCheck
??? SimpleNodeConstructor
visitor
- an expression visitorcontextItemType
- the static type of the context itempublic Expression copy()
copy
??? Expression
public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException
checkPermittedContents
??? Expression
parentType
- 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
???? TailCallReturner
processLeavingTail
??? Instruction
context
- the dynamic evaluation contextXPathException
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
???? EvaluableItem
evaluateItem
??? SimpleNodeConstructor
context
- the dynamic evaluation contextXPathException
public void explain(ExpressionPresenter out)
explain
??? Expression
out
- the expression presenter used to display the structure