|
||||||||||
| 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.FilterPattern
public class FilterPattern
matches a node if it matches a filter expression. Filter implements the a[b] pattern.
| Field Summary |
|---|
| Fields inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
_child, _parent, log, XMLNS |
| Constructor Summary | |
|---|---|
FilterPattern(AbstractPattern parent,
Expr expr)
|
|
| Method Summary | |
|---|---|
AbstractPattern |
copyPosition()
Returns the position matching pattern. |
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator. |
Expr |
getExpr()
Returns the filter's expression. |
java.lang.String |
getNodeName()
Returns the name of the matching node or '*' if many nodes match. |
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the filter expression matches. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
copyAxis, count, findAny, firstNode, getParent, getPrefix, getPriority, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilterPattern(AbstractPattern parent,
Expr expr)
| Method Detail |
|---|
public java.lang.String getNodeName()
AbstractPatternThe Xsl package uses this to speed template matching.
getNodeName in class AbstractPatternpublic Expr getExpr()
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the current 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
XPathExceptionpublic AbstractPattern copyPosition()
AbstractPattern
copyPosition in class AbstractPatternpublic 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 | |||||||||