|
||||||||||
| 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.NodePattern
public class NodePattern
Matches a named node, like para or @id.
| Field Summary |
|---|
| Fields inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
_child, _parent, log, XMLNS |
| Constructor Summary | |
|---|---|
NodePattern(AbstractPattern parent,
java.lang.String tag,
int nodeType)
Creates a new node-matching pattern. |
|
| Method Summary | |
|---|---|
AbstractPattern |
copyPosition()
Copies the position (non-axis) portion of the pattern. |
boolean |
equals(java.lang.Object b)
Returns true if the two patterns are equal. |
java.lang.String |
getNodeName()
Returns the pattern's matching node name. |
double |
getPriority()
All priorities are based on the node priority. |
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the node type matches and the node name matches. |
java.lang.String |
toString()
Converts the pattern back to its |
| Methods inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
copyAxis, count, createNodeIterator, findAny, firstNode, getParent, getPrefix, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NodePattern(AbstractPattern parent,
java.lang.String tag,
int nodeType)
| Method Detail |
|---|
public double getPriority()
getPriority in class AbstractPatternpublic java.lang.String getNodeName()
getNodeName in class AbstractPattern
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the node to test.env - the variable environment
XPathExceptionpublic AbstractPattern copyPosition()
copyPosition in class AbstractPatternpublic boolean equals(java.lang.Object b)
equals in class java.lang.Objectpublic 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 | |||||||||