Class AngleQuoteDelimiterProcessor

java.lang.Object
com.vladsch.flexmark.ext.typographic.internal.QuoteDelimiterProcessorBase
com.vladsch.flexmark.ext.typographic.internal.AngleQuoteDelimiterProcessor
All Implemented Interfaces:
DelimiterProcessor

public class AngleQuoteDelimiterProcessor extends QuoteDelimiterProcessorBase
  • Constructor Details

    • AngleQuoteDelimiterProcessor

      public AngleQuoteDelimiterProcessor(TypographicOptions options)
  • Method Details

    • getMinLength

      public int getMinLength()
      Specified by:
      getMinLength in interface DelimiterProcessor
      Overrides:
      getMinLength in class QuoteDelimiterProcessorBase
      Returns:
      Minimum number of delimiter characters that are needed to activate this. Must be at least 1.
    • canBeOpener

      public boolean canBeOpener(String before, String after, boolean leftFlanking, boolean rightFlanking, boolean beforeIsPunctuation, boolean afterIsPunctuation, boolean beforeIsWhitespace, boolean afterIsWhiteSpace)
      Description copied from interface: DelimiterProcessor
      Decide whether this delimiter can be an open delimiter
      Specified by:
      canBeOpener in interface DelimiterProcessor
      Overrides:
      canBeOpener in class QuoteDelimiterProcessorBase
      Parameters:
      before - string before delimiter or '\n' if none
      after - string after delimiter or '\n' if none
      leftFlanking - is left flanking delimiter
      rightFlanking - is right flanking delimiter
      beforeIsPunctuation - is punctuation before
      afterIsPunctuation - is punctuation after
      beforeIsWhitespace - is whitespace before
      afterIsWhiteSpace - is whitespace after
      Returns:
      true if can be open delimiter
    • canBeCloser

      public boolean canBeCloser(String before, String after, boolean leftFlanking, boolean rightFlanking, boolean beforeIsPunctuation, boolean afterIsPunctuation, boolean beforeIsWhitespace, boolean afterIsWhiteSpace)
      Description copied from interface: DelimiterProcessor
      Decide whether this delimiter can be a close delimiter
      Specified by:
      canBeCloser in interface DelimiterProcessor
      Overrides:
      canBeCloser in class QuoteDelimiterProcessorBase
      Parameters:
      before - string before delimiter or '\n' if none
      after - string after delimiter or '\n' if none
      leftFlanking - is left flanking delimiter
      rightFlanking - is right flanking delimiter
      beforeIsPunctuation - is punctuation before
      afterIsPunctuation - is punctuation after
      beforeIsWhitespace - is whitespace before
      afterIsWhiteSpace - is whitespace after
      Returns:
      true if can be open delimiter
    • isAllowed

      protected boolean isAllowed(CharSequence seq, int index)
      Overrides:
      isAllowed in class QuoteDelimiterProcessorBase