Class HtmlInlineParser

    • Field Detail

      • asciiLetter

        private static final AsciiMatcher asciiLetter
      • tagNameStart

        private static final AsciiMatcher tagNameStart
      • tagNameContinue

        private static final AsciiMatcher tagNameContinue
      • attributeStart

        private static final AsciiMatcher attributeStart
      • attributeContinue

        private static final AsciiMatcher attributeContinue
      • attributeValueEnd

        private static final AsciiMatcher attributeValueEnd
    • Constructor Detail

      • HtmlInlineParser

        public HtmlInlineParser()
    • Method Detail

      • tryParse

        public ParsedInline tryParse​(InlineParserState inlineParserState)
        Description copied from interface: InlineContentParser
        Try to parse inline content starting from the current position. Note that the character at the current position is one of InlineContentParserFactory.getTriggerCharacters() of the factory that created this parser.

        For a given inline content snippet that is being parsed, this method can be called multiple times: each time a trigger character is encountered.

        Specified by:
        tryParse in interface InlineContentParser
        Parameters:
        inlineParserState - the current state of the inline parser
        Returns:
        the result of parsing; can indicate that this parser is not interested, or that parsing was successful
      • tryOpenTag

        private static boolean tryOpenTag​(Scanner scanner)
      • tryClosingTag

        private static boolean tryClosingTag​(Scanner scanner)
      • tryProcessingInstruction

        private static boolean tryProcessingInstruction​(Scanner scanner)
      • tryComment

        private static boolean tryComment​(Scanner scanner)
      • tryCdata

        private static boolean tryCdata​(Scanner scanner)
      • tryDeclaration

        private static boolean tryDeclaration​(Scanner scanner)