public class SubstitutionGroupTest extends NodeTest
Constructor and Description |
---|
SubstitutionGroupTest(int fingerprint,
IntHashSet group)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
double |
getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
|
int |
getHeadFingerprint()
Get the fingerprint of the head of the substitution group
|
int |
getNodeKindMask()
Get a mask indicating which kinds of nodes this NodeTest can match.
|
int |
getPrimitiveType()
Determine the types of nodes to which this pattern applies.
|
IntHashSet |
getRequiredNodeNames()
Get the set of node names allowed by this NodeTest.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
matches(int nodeKind,
int nameCode,
int annotation)
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.
|
boolean |
matches(TinyTree tree,
int nodeNr)
Test whether this node test is satisfied by a given node on a TinyTree.
|
String |
toString(NamePool pool)
Display the type descriptor for diagnostics
|
getAtomizedItemType, getContentType, getFingerprint, getPrimitiveItemType, getSuperType, isAtomicType, matchesItem
public SubstitutionGroupTest(int fingerprint, IntHashSet group)
group
- An IntSet containing Integer values representing the fingerprints
of element names included in the substitution grouppublic boolean matches(int nodeKind, int nameCode, int annotation)
public boolean matches(TinyTree tree, int nodeNr)
public boolean matches(NodeInfo node)
public final double getDefaultPriority()
getDefaultPriority
in class NodeTest
public int getPrimitiveType()
getPrimitiveType
in interface ItemType
getPrimitiveType
in class NodeTest
public int getNodeKindMask()
getNodeKindMask
in class NodeTest
public IntHashSet getRequiredNodeNames()
getRequiredNodeNames
in class NodeTest
public int getHeadFingerprint()
public String toString(NamePool pool)
NodeTest
public int hashCode()