net.sf.saxon.instruct
public final class ValueOf extends SimpleNodeConstructor
| Constructor Summary | |
|---|---|
| ValueOf(Expression select, boolean disable, boolean noNodeIfEmpty)
Create a new ValueOf expression | |
| Method Summary | |
|---|---|
| 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() |
| 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) |
| 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) |
| TailCall | processLeavingTail(XPathContext context)
Process this instruction, sending the resulting text node to the current output destination |
| protected void | processValue(CharSequence value, XPathContext context)
Process the value of the node, to create the new node. |
| protected void | promoteInst(PromotionOffer offer)
Offer promotion for subexpressions. |
| void | setIsNumberingInstruction()
Indicate that this is really an xsl:nunber instruction |
Parameters: select the select expression disable true if disable-output-escaping is in force noNodeIfEmpty true if the instruction is to return () if the select expression is (), false if it is to return an empty text node
Parameters: parentType The schema type env the static context whole true if this expression is to account for the whole value of the type
Throws: net.sf.saxon.trans.XPathException if the expression doesn't match the required content type
Parameters: env the static evaluation context
Returns: the converted expression
Returns: the copy of the original expression
Parameters: context the dynamic evaluation context
Returns: the parentless text node that results from evaluating this instruction, or null to represent an empty sequence
Throws: XPathException
Returns: the namecode of the instruction name
Returns: any special options
Returns: true if disable-output-escaping was requested
Returns: true if this derives from xsl:number
Parameters: context the dynamic evaluation context
Returns: Always returns null
Throws: XPathException
Parameters: value the string value of the new node context the dynamic evaluation context
Throws: net.sf.saxon.trans.XPathException
Parameters: 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 expression
Throws: XPathException if any error is detected