|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.instruct.SimpleContentConstructor
net.sf.saxon.instruct.QuerySimpleContentConstructor
public class QuerySimpleContentConstructor
This class implements the rules for an XQuery simple content constructor, which are used in constructing the string value of an attribute node, text node, comment node, etc, from the value of the select expression or the contained sequence constructor. These differ slightly from the XSLT rules implemented in the superclass - specifically, the sequence is simply atomized, whereas XSLT takes special steps to concatenate adjacent text nodes before inserting separators.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.Expression |
|---|
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties |
| Constructor Summary | |
|---|---|
QuerySimpleContentConstructor(Expression select,
Expression separator,
boolean noNodeIfEmpty)
|
|
| Method Summary | |
|---|---|
protected int |
computeCardinality()
Compute the cardinality of the result of the expression. |
Expression |
copy()
Copy an expression. |
Item |
evaluateItem(XPathContext context)
Evaluate an expression as a single item. |
CharSequence |
expandChildren(XPathContext context)
Expand the stylesheet elements subordinate to this one, returning the result as a string. |
boolean |
isNoNodeWhenEmpty()
|
void |
process(XPathContext context,
int locationId,
int options)
Process the instruction, without returning any tail calls |
| Methods inherited from class net.sf.saxon.instruct.SimpleContentConstructor |
|---|
explain, getImplementationMethod, getItemType, getSelectExpression, getSeparatorExpression, isAtomic, isSingleton, iterateSubExpressions, optimize, processLeft, processRight, promote, replaceSubExpression, simplify, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QuerySimpleContentConstructor(Expression select,
Expression separator,
boolean noNodeIfEmpty)
| Method Detail |
|---|
public boolean isNoNodeWhenEmpty()
protected int computeCardinality()
computeCardinality in class SimpleContentConstructorpublic Expression copy()
copy in class SimpleContentConstructor
public CharSequence expandChildren(XPathContext context)
throws XPathException
context - The dynamic context for the transformation
XPathException
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class SimpleContentConstructorcontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
expression
public void process(XPathContext context,
int locationId,
int options)
throws XPathException
process in class SimpleContentConstructorcontext - The dynamic context, giving access to the current node,
the current variables, etc.
XPathException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||