public interface Pattern extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Node n)
Indicates whether a node matches a pattern.
|
void |
prune(Node n)
Prunes a node of all the descendants that are not required to match the pattern.
|
boolean matches(Node n)
n - the node.true if it does, false otherwise.Copyright © 2018. All Rights Reserved.