public static interface StringVisitable.Visitor<T>
Modifier and Type | Method and Description |
---|---|
Optional<T> |
accept(String asString)
Visits a literal string.
|
Optional<T> accept(String asString)
When a present optional
is returned,
the visit is terminated before visiting all text. Can return StringRenderable#TERMINATE_VISIT
for convenience.
asString
- the literal stringOptional.empty()
to continue, a non-empty result to terminate