|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.SlashExpression net.sf.saxon.expr.AtomicMappingExpression
public final class AtomicMappingExpression
An atomic mapping expression is a slash expression A/B where B has a static type that is an atomic type. For example, * / name().
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties |
Constructor Summary | |
---|---|
AtomicMappingExpression(Expression start,
Expression step)
Constructor |
Method Summary | |
---|---|
Expression |
copy()
Copy an expression. |
void |
explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
boolean |
isHybrid()
Determine whether this expression is capable (as far as static analysis is concerned) of returning a mixture of nodes and atomic values. |
SequenceIterator |
iterate(XPathContext context)
Iterate the path-expression in a given context |
Expression |
typeCheck(ExpressionVisitor visitor,
ItemType contextItemType)
Type-check the expression |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.ContextMappingFunction |
---|
map |
Constructor Detail |
---|
public AtomicMappingExpression(Expression start, Expression step)
start
- A node-set expression denoting the absolute or relative set of nodes from which the
navigation path should start.step
- The step to be followed from each node in the start expression to yield a new
node-setMethod Detail |
---|
public boolean isHybrid()
isHybrid
in class SlashExpression
public Expression typeCheck(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException
typeCheck
in class SlashExpression
visitor
- an expression visitorcontextItemType
- the static type of "." at the point where this expression is invoked.
The parameter is set to null if it is known statically that the context item will be undefined.
If the type of the context item is not known statically, the argument is set to
Type.ITEM_TYPE
XPathException
- if an error is discovered during this phase
(typically a type error)public Expression copy()
copy
in class SlashExpression
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface SequenceIterable
iterate
in class SlashExpression
context
- the evaluation context
XPathException
- if any dynamic error occurs evaluating the
expressionpublic void explain(ExpressionPresenter destination)
explain
in class SlashExpression
destination
- the expression presenter used to display the structure
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |