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, toPatternString
public FilterPattern(AbstractPattern parent, Expr expr)
public java.lang.String getNodeName()
AbstractPattern
The Xsl package uses this to speed template matching.
getNodeName
in class AbstractPattern
public Expr getExpr()
public boolean match(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
match
in class AbstractPattern
node
- the current node to testenv
- the variable environmentXPathException
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 AbstractPattern copyPosition()
AbstractPattern
copyPosition
in class AbstractPattern
public java.lang.String toString()
toString
in class java.lang.Object