Package com.vladsch.flexmark.parser
Class ListOptions
- java.lang.Object
-
- com.vladsch.flexmark.parser.ListOptions
-
- All Implemented Interfaces:
com.vladsch.flexmark.util.data.MutableDataSetter
- Direct Known Subclasses:
MutableListOptions
public class ListOptions extends Object implements com.vladsch.flexmark.util.data.MutableDataSetter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListOptions.ItemInterrupt
static class
ListOptions.MutableItemInterrupt
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ListOptions()
-
Method Summary
-
-
-
Field Detail
-
myParserEmulationProfile
@NotNull protected @NotNull ParserEmulationProfile myParserEmulationProfile
-
itemInterrupt
@NotNull protected @NotNull ListOptions.ItemInterrupt itemInterrupt
-
autoLoose
protected boolean autoLoose
-
autoLooseOneLevelLists
protected boolean autoLooseOneLevelLists
-
delimiterMismatchToNewList
protected boolean delimiterMismatchToNewList
-
endOnDoubleBlank
protected boolean endOnDoubleBlank
-
itemMarkerSpace
protected boolean itemMarkerSpace
-
itemTypeMismatchToNewList
protected boolean itemTypeMismatchToNewList
-
itemTypeMismatchToSubList
protected boolean itemTypeMismatchToSubList
-
looseWhenPrevHasTrailingBlankLine
protected boolean looseWhenPrevHasTrailingBlankLine
-
looseWhenLastItemPrevHasTrailingBlankLine
protected boolean looseWhenLastItemPrevHasTrailingBlankLine
-
looseWhenHasNonListChildren
protected boolean looseWhenHasNonListChildren
-
looseWhenBlankLineFollowsItemParagraph
protected boolean looseWhenBlankLineFollowsItemParagraph
-
looseWhenHasLooseSubItem
protected boolean looseWhenHasLooseSubItem
-
looseWhenHasTrailingBlankLine
protected boolean looseWhenHasTrailingBlankLine
-
looseWhenContainsBlankLine
protected boolean looseWhenContainsBlankLine
-
numberedItemMarkerSuffixed
protected boolean numberedItemMarkerSuffixed
-
orderedItemDotOnly
protected boolean orderedItemDotOnly
-
orderedListManualStart
protected boolean orderedListManualStart
-
itemContentAfterSuffix
protected boolean itemContentAfterSuffix
-
itemPrefixChars
@NotNull protected @NotNull String itemPrefixChars
-
codeIndent
protected int codeIndent
-
itemIndent
protected int itemIndent
-
newItemCodeIndent
protected int newItemCodeIndent
-
itemMarkerSuffixes
@NotNull protected @NotNull String[] itemMarkerSuffixes
-
-
Method Detail
-
getFrom
@Deprecated @NotNull public static @NotNull ListOptions getFrom(com.vladsch.flexmark.util.data.DataHolder options)
Deprecated.use get()- Parameters:
options
- options- Returns:
- new list options
-
get
@NotNull public static @NotNull ListOptions get(com.vladsch.flexmark.util.data.DataHolder options)
-
isTightListItem
public boolean isTightListItem(@NotNull @NotNull ListItem node)
-
isInTightListItem
public boolean isInTightListItem(@NotNull @NotNull Paragraph node)
-
canInterrupt
public boolean canInterrupt(@NotNull @NotNull ListBlock a, boolean isEmptyItem, boolean isItemParagraph)
-
canStartSubList
public boolean canStartSubList(@NotNull @NotNull ListBlock a, boolean isEmptyItem)
-
startNewList
public boolean startNewList(@NotNull @NotNull ListBlock a, @NotNull @NotNull ListBlock b)
-
startSubList
public boolean startSubList(@NotNull @NotNull ListBlock a, @NotNull @NotNull ListBlock b)
-
getMutable
public MutableListOptions getMutable()
-
setIn
@NotNull public @NotNull com.vladsch.flexmark.util.data.MutableDataHolder setIn(@NotNull @NotNull com.vladsch.flexmark.util.data.MutableDataHolder options)
- Specified by:
setIn
in interfacecom.vladsch.flexmark.util.data.MutableDataSetter
-
addItemMarkerSuffixes
public static void addItemMarkerSuffixes(@NotNull @NotNull com.vladsch.flexmark.util.data.MutableDataHolder options, String... itemMarkerSuffixes)
-
getParserEmulationProfile
@NotNull public @NotNull ParserEmulationProfile getParserEmulationProfile()
-
getItemInterrupt
@NotNull public @NotNull ListOptions.ItemInterrupt getItemInterrupt()
-
isAutoLoose
public boolean isAutoLoose()
-
isAutoLooseOneLevelLists
public boolean isAutoLooseOneLevelLists()
-
isDelimiterMismatchToNewList
public boolean isDelimiterMismatchToNewList()
-
isEndOnDoubleBlank
public boolean isEndOnDoubleBlank()
-
isItemMarkerSpace
public boolean isItemMarkerSpace()
-
isItemTypeMismatchToNewList
public boolean isItemTypeMismatchToNewList()
-
isItemContentAfterSuffix
public boolean isItemContentAfterSuffix()
-
getItemPrefixChars
@NotNull public @NotNull String getItemPrefixChars()
-
isItemTypeMismatchToSubList
public boolean isItemTypeMismatchToSubList()
-
isLooseWhenPrevHasTrailingBlankLine
public boolean isLooseWhenPrevHasTrailingBlankLine()
-
isLooseWhenLastItemPrevHasTrailingBlankLine
public boolean isLooseWhenLastItemPrevHasTrailingBlankLine()
-
isLooseWhenHasNonListChildren
public boolean isLooseWhenHasNonListChildren()
-
isLooseWhenHasLooseSubItem
public boolean isLooseWhenHasLooseSubItem()
-
isLooseWhenHasTrailingBlankLine
public boolean isLooseWhenHasTrailingBlankLine()
-
isLooseWhenContainsBlankLine
public boolean isLooseWhenContainsBlankLine()
-
isLooseWhenBlankLineFollowsItemParagraph
public boolean isLooseWhenBlankLineFollowsItemParagraph()
-
isOrderedItemDotOnly
public boolean isOrderedItemDotOnly()
-
isOrderedListManualStart
public boolean isOrderedListManualStart()
-
isNumberedItemMarkerSuffixed
public boolean isNumberedItemMarkerSuffixed()
-
getCodeIndent
public int getCodeIndent()
-
getItemIndent
public int getItemIndent()
-
getNewItemCodeIndent
public int getNewItemCodeIndent()
-
getItemMarkerSuffixes
@NotNull public @NotNull String[] getItemMarkerSuffixes()
-
-