|
||||||||||
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.UnionPattern
public class UnionPattern
Implementation of the 'a|b' pattern. It's made public so XSLT can separate the left and right sides.
Field Summary |
---|
Fields inherited from class com.caucho.xpath.pattern.AbstractPattern |
---|
_child, _parent, log, XMLNS |
Constructor Summary | |
---|---|
UnionPattern(AbstractPattern left,
AbstractPattern right)
|
Method Summary | |
---|---|
int |
count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the number of nodes in its context for a match pattern. |
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator. |
AbstractPattern |
getLeft()
Return left node of the union. |
AbstractPattern |
getRight()
Return right node of the union. |
boolean |
isStrictlyAscending()
Returns true if the nodes are ascending. |
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Match if either pattern matches. |
int |
position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the position of the node in its context for a match pattern. |
java.lang.String |
toString()
|
Methods inherited from class com.caucho.xpath.pattern.AbstractPattern |
---|
copyAxis, copyPosition, findAny, firstNode, getNodeName, getParent, getPrefix, getPriority, isAscending, 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 UnionPattern(AbstractPattern left, AbstractPattern right)
Method Detail |
---|
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 boolean isStrictlyAscending()
isStrictlyAscending
in class AbstractPattern
public NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
createNodeIterator
in class AbstractPattern
node
- the starting nodeenv
- the xpath environmentmatch
- the axis match pattern
XPathException
public int position(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
AbstractPattern
position
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position pattern
XPathException
public int count(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
AbstractPattern
count
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position pattern
XPathException
public AbstractPattern getLeft()
public AbstractPattern getRight()
public 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 |