Test whether this node test is satisfied by a given node. This method is only
fully supported for a subset of NodeTests, because it doesn't provide all the information
needed to evaluate all node tests. In particular (a) it can't be used to evaluate a node
test of the form element(N,T) or schema-element(E) where it is necessary to know whether the
node is nilled, and (b) it can't be used to evaluate a node test of the form
document-node(element(X)). This in practice means that it is used (a) to evaluate the
simple node tests found in the XPath 1.0 subset used in XML Schema, and (b) to evaluate
node tests where the node kind is known to be an attribute.
Get a matching function that can be used to test whether numbered nodes in a TinyTree
or DominoTree satisfy the node test. (Calling this matcher must give the same result
as calling matchesNode(tree.getNode(nodeNr)), but it may well be faster).
Return a string representation of this ItemType suitable for use in stylesheet
export files. This differs from the result of toString() in that it will not contain
any references to anonymous types. Note that it may also use the Saxon extended syntax
for union types and tuple types. The default implementation returns the result of
the string representation as an instance of the XPath SequenceType construct
public int hashCode()
Returns a hash code value for the object.
hashCode in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
knownToBe - An item type that the supplied item is known to conform to; the generated code
can assume that the item is an instance of this type.
targetVersion - The version of Saxon-JS for which code is being generated. Currently either 1 or 2.
variable "item" is an instance of this item type.