public class NameTest extends NodeTest
originalText, staticContext| Constructor | Description |
|---|---|
NameTest(short nodeType,
int nameCode) |
|
NameTest(NodeInfo node) |
Create a NameTest for nodes of the same type and name as a given node
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
getDefaultPriority() |
Determine the default priority of this node test when used on its own as a Pattern
|
int |
getFingerprint() |
Get the fingerprint required
|
short |
getNodeType() |
Determine the types of nodes to which this pattern applies.
|
boolean |
matches(short nodeType,
int nameCode) |
Test whether this node test is satisfied by a given node
|
boolean |
matches(NodeInfo node) |
Test whether this node test is satisfied by a given node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLineNumber, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toStringpublic NameTest(short nodeType,
int nameCode)
public NameTest(NodeInfo node)
public final boolean matches(NodeInfo node)
public boolean matches(short nodeType,
int nameCode)
public final double getDefaultPriority()
getDefaultPriority in class Patternpublic int getFingerprint()
getFingerprint in class Patternpublic short getNodeType()
getNodeType in class Pattern