public class AnyPattern extends AbstractPattern
Nodes.| Constructor and Description |
|---|
AnyPattern() |
| 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.
|
String |
toString() |
equals, hashCode, idPattern, setIdPatternpublic boolean matches(Node n)
matches in interface Patternmatches in class AbstractPatternn - the node.true if it does, false otherwise.public void prune(Node n) throws Exception
prune in interface Patternprune in class AbstractPatternn - the node.Exception - if the node does not match the pattern.Copyright © 2018. All Rights Reserved.