public static final class NearestSectionFilter.Builder extends Object
NearestSectionFilter
before creating its instance. Specify
various parameters by calling individual NearestSectionFilter.Builder
methods. When done, call
NearestSectionFilter.Builder.build()
.Modifier and Type | Method and Description |
---|---|
NearestSectionFilter.Builder |
anchorStart(boolean start)
Specify the nearest anchor.
|
NearestSectionFilter |
build()
Finalizes and constructs the
NearestSectionFilter instance. |
NearestSectionFilter.Builder |
tagIs(Class<?>... tags)
Specify tags of the nearest source section.
|
public NearestSectionFilter.Builder anchorStart(boolean start)
start
- specify if we search for the nearest start or nearest end of the filtered
source sections to the given location. true
for the start and
false
for the end.public NearestSectionFilter.Builder tagIs(Class<?>... tags)
SourceSectionFilter.Builder.tagIs(Class...)
, but here instead.tags
- a set of tags, the nearest node needs to be tagged with at least one tag from
this setpublic NearestSectionFilter build()
NearestSectionFilter
instance.