public interface HtmlElementMatcher
A custom matcher to be triggered each time the parser visits a HtmlElement. Used to determine if a visited HtmlElement matches a user-provided criteria.
HtmlElement| Modifier and Type | Method and Description |
|---|---|
boolean |
match(HtmlElement lastMatchedElement,
HtmlElement currentElement)
Used to determine if the currentElement should be matched by the parser.
|
boolean match(HtmlElement lastMatchedElement, HtmlElement currentElement)
Used to determine if the currentElement should be matched by the parser. The lastMatchedElement can be used to provide information to determine if the currentElement should be matched.
Note:lastMatchedElement may be null.
lastMatchedElement - the element that was matched last by the parser (may be null)currentElement - the element that the parser is current visitingtrue if the currentElement should be matched by the parser, false otherwiseCopyright © 2018 uniVocity Software Pty Ltd. All rights reserved.