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, toPatternString
public FromExpr(AbstractPattern parent, Expr expr)
public boolean match(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
match
in class AbstractPattern
node
- the node to testenv
- the variable environment.XPathException
public NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
createNodeIterator
in class AbstractPattern
node
- the starting nodeenv
- the variable environmentmatch
- the axis match patternXPathException
public int position(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
position
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public int count(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
count
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public java.lang.String toString()
toString
in class java.lang.Object