public class FromExpr extends AbstractPattern
The code interprets Iterators, ArrayLists, and Nodes as node sets.
_child, _parent, log, XMLNS| Constructor and Description |
|---|
FromExpr(AbstractPattern parent,
Expr expr) |
| Modifier and Type | Method and Description |
|---|---|
int |
count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count is the size of the expression node-set.
|
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the expression returns a node set and the test-node is
contained in that node set.
|
int |
position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position is the position in the expression node-set.
|
java.lang.String |
toString() |
copyAxis, copyPosition, findAny, firstNode, getNodeName, getParent, getPrefix, getPriority, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, select, selectUnique, toPatternStringpublic FromExpr(AbstractPattern parent, Expr expr)
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the node to testenv - the variable environment.XPathExceptionpublic NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
createNodeIterator in class AbstractPatternnode - the starting nodeenv - the variable environmentmatch - the axis match patternXPathExceptionpublic int position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
position in class AbstractPatternnode - the current nodeenv - the variable environmentpattern - the position patternXPathExceptionpublic int count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
throws XPathException
count in class AbstractPatternnode - the current nodeenv - the variable environmentpattern - the position patternXPathExceptionpublic java.lang.String toString()
toString in class java.lang.Object