Gets the pattern type.
StaticanyCreates a new NodePattern that matches any node.
StaticintervalCreates a new NodePattern that matches a node with the specified count of assertions.
Optionalmax: numberStaticfromStaticwithCreates a new NodePattern with a subject pattern constraint.
Gets the subject pattern if this is a WithSubject type, undefined otherwise.
Gets the assertion patterns (empty array if none).
Returns true if the pattern matches the haystack.
Returns true if the Display of the matcher is complex, i.e. contains nested patterns or other complex structures that require its text rendering to be surrounded by grouping parentheses.
Returns a string representation of an object.
Hash code for use in Maps/Sets.
Pattern for matching node envelopes.
Corresponds to the Rust
NodePatternenum in node_pattern.rs