public class CombinedNodeTest extends NodeTest
?????? |
---|
CombinedNodeTest(NodeTest nt1,
int operator,
NodeTest nt2)
Create a NodeTest that combines two other node tests
|
?????? | ????? |
---|---|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one.
|
AtomicType |
getAtomizedItemType()
Get the item type of the atomic values that will be produced when an item
of this type is atomized (assuming that atomization succeeds)
|
NodeTest[] |
getComponentNodeTests()
Get the two parts of the combined node test
|
SchemaType |
getContentType()
Get the content type allowed by this NodeTest (that is, the type annotation of the matched nodes).
|
double |
getDefaultPriority()
get the default priority of this nodeTest when used as a pattern
|
int |
getFingerprint()
Get the name of the nodes matched by this nodetest, if it matches a specific name.
|
int |
getNodeKindMask()
Get a mask indicating which kinds of nodes this NodeTest can match.
|
int |
getOperator()
Get the operator used to combine the two node tests: one of
Token.UNION ,
Token.INTERSECT , Token.EXCEPT , |
int |
getPrimitiveType()
Get the basic kind of object that this ItemType matches: for a NodeTest, this is the kind of node,
or Type.Node if it matches different kinds of nodes.
|
IntHashSet |
getRequiredNodeNames()
Get the set of node names allowed by this NodeTest.
|
ItemType |
getSuperType(TypeHierarchy th)
Get the supertype of this type.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isNillable()
Determine whether the content type (if present) is nillable
|
boolean |
matches(int nodeType,
int fingerprint,
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.
|
void |
setGlobalComponentTest(boolean global)
Indicate whether this CombinedNodeTest actually represents a SequenceType of the form
schema-element(X) or schema-attribute(X).
|
java.lang.String |
toString() |
java.lang.String |
toString(NamePool pool)
Display the type descriptor for diagnostics
|
getPrimitiveItemType, isAtomicType, matchesItem
public void setGlobalComponentTest(boolean global)
global
- true if this test represents a schema-element or schema-attribute testpublic boolean matches(int nodeType, int fingerprint, int annotation)
public boolean matches(TinyTree tree, int nodeNr)
public boolean matches(NodeInfo node)
public java.lang.String toString(NamePool pool)
NodeTest
public java.lang.String toString()
toString
??? java.lang.Object
public ItemType getSuperType(TypeHierarchy th)
getSuperType
???? ItemType
getSuperType
??? NodeTest
th
- the type hierarchy cachepublic int getNodeKindMask()
getNodeKindMask
??? NodeTest
public int getPrimitiveType()
getPrimitiveType
???? ItemType
getPrimitiveType
??? NodeTest
public IntHashSet getRequiredNodeNames()
getRequiredNodeNames
??? NodeTest
public SchemaType getContentType()
getContentType
??? NodeTest
public AtomicType getAtomizedItemType()
getAtomizedItemType
???? ItemType
getAtomizedItemType
??? NodeTest
public int getFingerprint()
getFingerprint
??? NodeTest
public boolean isNillable()
isNillable
??? NodeTest
public int hashCode()
hashCode
??? java.lang.Object
public boolean equals(java.lang.Object other)
equals
??? java.lang.Object
public double getDefaultPriority()
getDefaultPriority
??? NodeTest
public NodeTest[] getComponentNodeTests()
public int getOperator()
Token.UNION
,
Token.INTERSECT
, Token.EXCEPT
,