|
||||||||||
| 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.NodeTypePattern
public class NodeTypePattern
Matches a node without checking the name. e.g. * or @*
| Field Summary | |
|---|---|
static int |
ANY
|
static int |
NODE
|
| Fields inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
_child, _parent, log, XMLNS |
| Method Summary | |
|---|---|
AbstractPattern |
copyPosition()
Copies the node matching portion of the pattern, i.e. |
static AbstractPattern |
create(AbstractPattern parent,
int nodeType)
|
boolean |
equals(java.lang.Object b)
Returns true if the two patterns are equal. |
java.lang.String |
getNodeName()
Returns the name of the matching node or '*' if many nodes match. |
int |
getNodeType()
Returns the matching node type. |
double |
getPriority()
The node-type priority is less than nodes. |
boolean |
isStrictlyAscending()
Returns true if the pattern is strictly ascending. |
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the node type matches. |
java.lang.String |
toString()
Returns the printable representation of the pattern. |
| Methods inherited from class com.caucho.xpath.pattern.AbstractPattern |
|---|
copyAxis, count, createNodeIterator, findAny, firstNode, getParent, getPrefix, isAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NODE
public static final int ANY
| Method Detail |
|---|
public static AbstractPattern create(AbstractPattern parent,
int nodeType)
public double getPriority()
getPriority in class AbstractPatternpublic java.lang.String getNodeName()
The Xsl package uses this to speed template matching.
getNodeName in class AbstractPatternpublic int getNodeType()
public boolean isStrictlyAscending()
isStrictlyAscending in class AbstractPattern
public boolean match(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
match in class AbstractPatternnode - the current nodeenv - 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 | |||||||||