Class FormatControlProcessor
- java.lang.Object
-
- com.vladsch.flexmark.formatter.internal.FormatControlProcessor
-
public class FormatControlProcessor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLOSE_COMMENTprivate java.util.regex.PatternformatterOffPatternprivate java.lang.StringformatterOffTagprivate java.util.regex.PatternformatterOnPatternprivate java.lang.StringformatterOnTagprivate booleanformatterTagsAcceptRegexpprivate booleanformatterTagsEnabledprivate booleanjustTurnedOffFormattingprivate booleanjustTurnedOnFormattingprivate booleanmyFormatterOffstatic java.lang.StringOPEN_COMMENT
-
Constructor Summary
Constructors Constructor Description FormatControlProcessor(@NotNull Document document, @Nullable DataHolder options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.util.regex.PatterngetFormatterOffPattern()java.lang.StringgetFormatterOffTag()@Nullable java.util.regex.PatterngetFormatterOnPattern()java.lang.StringgetFormatterOnTag()booleangetFormatterRegExEnabled()booleangetFormatterTagsEnabled()private @Nullable java.util.regex.PatterngetPatternOrDisableRegexp(@NotNull java.lang.String markerText)voidinitializeFrom(@NotNull Node element)private @Nullable java.lang.BooleanisFormatterOffTag(@Nullable java.lang.CharSequence commentText)booleanisFormattingOff()booleanisFormattingRegion()private booleanisFormattingRegion(int offset, @NotNull Node node, boolean checkParent)booleanisFormattingRegion(@NotNull Node node)booleanisJustTurnedOffFormatting()booleanisJustTurnedOnFormatting()voidprocessFormatControl(@NotNull Node node)
-
-
-
Field Detail
-
OPEN_COMMENT
public static final java.lang.String OPEN_COMMENT
- See Also:
- Constant Field Values
-
CLOSE_COMMENT
public static final java.lang.String CLOSE_COMMENT
- See Also:
- Constant Field Values
-
formatterOnTag
private final java.lang.String formatterOnTag
-
formatterOffTag
private final java.lang.String formatterOffTag
-
formatterTagsEnabled
private final boolean formatterTagsEnabled
-
myFormatterOff
private boolean myFormatterOff
-
justTurnedOffFormatting
private boolean justTurnedOffFormatting
-
justTurnedOnFormatting
private boolean justTurnedOnFormatting
-
formatterTagsAcceptRegexp
private boolean formatterTagsAcceptRegexp
-
formatterOffPattern
private volatile java.util.regex.Pattern formatterOffPattern
-
formatterOnPattern
private volatile java.util.regex.Pattern formatterOnPattern
-
-
Constructor Detail
-
FormatControlProcessor
public FormatControlProcessor(@NotNull @NotNull Document document, @Nullable @Nullable DataHolder options)
-
-
Method Detail
-
isFormattingOff
public boolean isFormattingOff()
-
getFormatterOffPattern
@Nullable public @Nullable java.util.regex.Pattern getFormatterOffPattern()
-
getFormatterOnPattern
@Nullable public @Nullable java.util.regex.Pattern getFormatterOnPattern()
-
getPatternOrDisableRegexp
@Nullable private @Nullable java.util.regex.Pattern getPatternOrDisableRegexp(@NotNull @NotNull java.lang.String markerText)
-
isFormattingRegion
public boolean isFormattingRegion()
-
getFormatterOnTag
public java.lang.String getFormatterOnTag()
-
getFormatterOffTag
public java.lang.String getFormatterOffTag()
-
getFormatterTagsEnabled
public boolean getFormatterTagsEnabled()
-
getFormatterRegExEnabled
public boolean getFormatterRegExEnabled()
-
isJustTurnedOffFormatting
public boolean isJustTurnedOffFormatting()
-
isJustTurnedOnFormatting
public boolean isJustTurnedOnFormatting()
-
isFormatterOffTag
@Nullable private @Nullable java.lang.Boolean isFormatterOffTag(@Nullable @Nullable java.lang.CharSequence commentText)
-
initializeFrom
public void initializeFrom(@NotNull @NotNull Node element)
-
processFormatControl
public void processFormatControl(@NotNull @NotNull Node node)
-
isFormattingRegion
private boolean isFormattingRegion(int offset, @NotNull @NotNull Node node, boolean checkParent)
-
isFormattingRegion
public boolean isFormattingRegion(@NotNull @NotNull Node node)
-
-