|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.UnaryExpression
com.saxonica.extra.StringMirrorExpression
A StringMirrorExpression is used internally when indexing values that may be typed or untypedAtomic. Given a sequence of atomic values, it returns a sequence consisting of all the original atomic values, plus copies of those values that aren't strings or untyped atomic, converted to untyped atomic. For example, if the input sequence is (3,4,"+",5) then the output is (3,"3",4,"4","+",5,"5").
It is thus equivalent to:
for $in in $sequence return ($in, xdt:untypedAtomic($in)[not($in instanceof xs:string or $in instanceof xdt:untypedAtomic)])
Field Summary |
Fields inherited from class net.sf.saxon.expr.UnaryExpression |
operand |
Fields inherited from class net.sf.saxon.expr.ComputedExpression |
locationId, staticProperties |
Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
StringMirrorExpression(Expression base)
|
Method Summary | |
int |
computeCardinality()
Get the static cardinality of the expression |
int |
computeSpecialProperties()
Determine the special properties of this expression |
protected java.lang.String |
displayOperator(NamePool pool)
Give a string representation of the operator for use in diagnostics |
ItemType |
getItemType(TypeHierarchy th)
Get the static type of the expression |
SequenceIterator |
iterate(XPathContext context)
Return an Iterator to iterate over the values of a sequence. |
Methods inherited from class net.sf.saxon.expr.UnaryExpression |
display, equals, getBaseExpression, hashCode, iterateSubExpressions, optimize, promote, simplify, typeCheck |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringMirrorExpression(Expression base)
Method Detail |
public int computeCardinality()
computeCardinality
in class UnaryExpression
public ItemType getItemType(TypeHierarchy th)
getItemType
in interface Expression
getItemType
in class UnaryExpression
th
-
public int computeSpecialProperties()
computeSpecialProperties
in class UnaryExpression
StaticProperty.NON_CREATIVE
.public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface Expression
iterate
in class ComputedExpression
context
- supplies the context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionprotected java.lang.String displayOperator(NamePool pool)
displayOperator
in class UnaryExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |