|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.xpath.pattern.AbstractPattern
com.caucho.xpath.pattern.FromExpr
public class FromExpr
matches if the expression returns a node set and the test-node is contained in that node set.
The code interprets Iterators, ArrayLists, and Nodes as node sets.
| Field Summary |
|---|
| Fields inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
_child, _parent, log, XMLNS |
| Constructor Summary | |
|---|---|
FromExpr(AbstractPattern parent,
Expr expr)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
copyAxis, copyPosition, findAny, firstNode, getNodeName, getParent, getPrefix, getPriority, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, select, selectUnique, toPatternString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FromExpr(AbstractPattern parent,
Expr expr)
| Method Detail |
|---|
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - 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 AbstractPatternnode - the starting nodeenv - the variable environmentmatch - the axis match pattern
XPathException
public 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 pattern
XPathException
public 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 pattern
XPathExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||