@FunctionalInterface
public interface TextPredicate
| Modifier and Type | Field | Description |
|---|---|---|
static TextPredicate |
ANY_TEXT |
|
static TextPredicate |
IGNORABLE_TEXT |
|
static TextPredicate |
NON_IGNORABLE_TEXT |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accepts(Parent parent,
Text text) |
Returns true when a text must be kept.
|
static TextPredicate |
fromElementNames(java.util.Collection<java.lang.String> names) |
static final TextPredicate ANY_TEXT
static final TextPredicate IGNORABLE_TEXT
static final TextPredicate NON_IGNORABLE_TEXT
boolean accepts(Parent parent, Text text)
Text (and its parents) must have been created before this can be called.
parent - The element parent.text - The text node.static TextPredicate fromElementNames(java.util.Collection<java.lang.String> names)
Copyright © 2018. All rights reserved.