|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Pattern
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean matches(Node n)
n - the node.
true if it does, false otherwise.
void prune(Node n)
throws Exception
n - the node.
Exception - if the node does not match the pattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||