Interface BasedOptionsHolder
-
- All Known Subinterfaces:
BasedSequence,ReplacedBasedSequence
- All Known Implementing Classes:
BasedOptionsSequence,BasedSequence.EmptyBasedSequence,BasedSequenceImpl,CharSubSequence,MappedBasedSequence,PrefixedSubSequence,SegmentedSequence,SegmentedSequenceFull,SegmentedSequenceTree,SubSequence
public interface BasedOptionsHolderImplemented by BasedOptionsSequence, use instance of it to pass toBasedSequence.of(CharSequence)and options enabled in it will be accessible to all based sequences or uses of these for testing for options or getting options.Only works with SubSequence base not CharArraySequence
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBasedOptionsHolder.Options
-
Field Summary
Fields Modifier and Type Field Description static intF_APPLICATION_OPTIONSstatic intF_COLLECT_FIRST256_STATSstatic intF_COLLECT_SEGMENTED_STATSstatic intF_FULL_SEGMENTED_SEQUENCESstatic intF_LIBRARY_OPTIONSstatic intF_NO_ANCHORSstatic intF_TREE_SEGMENTED_SEQUENCESstatic BasedOptionsHolder.OptionsO_COLLECT_FIRST256_STATSstatic BasedOptionsHolder.OptionsO_COLLECT_SEGMENTED_STATSstatic BasedOptionsHolder.OptionsO_FULL_SEGMENTED_SEQUENCESstatic BasedOptionsHolder.OptionsO_NO_ANCHORSstatic BasedOptionsHolder.OptionsO_TREE_SEGMENTED_SEQUENCESstatic com.vladsch.flexmark.util.data.NullableDataKey<SegmentedSequenceStats>SEGMENTED_STATS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallOptions(int options)Options test for options for this sequencebooleananyOptions(int options)Options test for options for this sequence<T> TgetOption(com.vladsch.flexmark.util.data.DataKeyBase<T> dataKey)Options holder, default has none, only available on BasedSequenceWithOptionsintgetOptionFlags()Options test for options for this sequence@Nullable com.vladsch.flexmark.util.data.DataHoldergetOptions()Options holder, default has none, only available on BasedSequenceWithOptionsstatic StringoptionsToString(int options)
-
-
-
Field Detail
-
O_COLLECT_SEGMENTED_STATS
static final BasedOptionsHolder.Options O_COLLECT_SEGMENTED_STATS
-
O_COLLECT_FIRST256_STATS
static final BasedOptionsHolder.Options O_COLLECT_FIRST256_STATS
-
O_NO_ANCHORS
static final BasedOptionsHolder.Options O_NO_ANCHORS
-
O_FULL_SEGMENTED_SEQUENCES
static final BasedOptionsHolder.Options O_FULL_SEGMENTED_SEQUENCES
-
O_TREE_SEGMENTED_SEQUENCES
static final BasedOptionsHolder.Options O_TREE_SEGMENTED_SEQUENCES
-
F_COLLECT_SEGMENTED_STATS
static final int F_COLLECT_SEGMENTED_STATS
-
F_COLLECT_FIRST256_STATS
static final int F_COLLECT_FIRST256_STATS
-
F_NO_ANCHORS
static final int F_NO_ANCHORS
-
F_FULL_SEGMENTED_SEQUENCES
static final int F_FULL_SEGMENTED_SEQUENCES
-
F_TREE_SEGMENTED_SEQUENCES
static final int F_TREE_SEGMENTED_SEQUENCES
-
F_LIBRARY_OPTIONS
static final int F_LIBRARY_OPTIONS
- See Also:
- Constant Field Values
-
F_APPLICATION_OPTIONS
static final int F_APPLICATION_OPTIONS
- See Also:
- Constant Field Values
-
SEGMENTED_STATS
static final com.vladsch.flexmark.util.data.NullableDataKey<SegmentedSequenceStats> SEGMENTED_STATS
-
-
Method Detail
-
optionsToString
static String optionsToString(int options)
-
getOptionFlags
int getOptionFlags()
Options test for options for this sequencedefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
- Returns:
- option flags for this sequence
-
allOptions
boolean allOptions(int options)
Options test for options for this sequencedefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
- Parameters:
options- option flags- Returns:
- true if all option flags passed are set for this sequence
-
anyOptions
boolean anyOptions(int options)
Options test for options for this sequencedefault reports true for global default options (if any) , variation available on BasedSequenceWithOptions
- Parameters:
options- option flags- Returns:
- true if any option flags passed are set for this sequence
-
getOption
@Nullable <T> T getOption(com.vladsch.flexmark.util.data.DataKeyBase<T> dataKey)
Options holder, default has none, only available on BasedSequenceWithOptions- Type Parameters:
T- type of value held by key- Parameters:
dataKey- in options- Returns:
- true if data key is available
-
getOptions
@Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder getOptions()
Options holder, default has none, only available on BasedSequenceWithOptions- Returns:
- data holder with options or null if none for this sequence
-
-