public class FilterPattern extends AbstractPattern
_child, _parent, log, XMLNS| Constructor and Description |
|---|
FilterPattern(AbstractPattern parent,
Expr expr) |
| Modifier and Type | Method and Description |
|---|---|
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() |
copyAxis, count, findAny, firstNode, getParent, getPrefix, getPriority, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternStringpublic FilterPattern(AbstractPattern parent, Expr expr)
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 environmentXPathExceptionpublic 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 AbstractPattern copyPosition()
AbstractPatterncopyPosition in class AbstractPatternpublic java.lang.String toString()
toString in class java.lang.Object