Package org.commonmark.internal.inline
Class HtmlInlineParser
java.lang.Object
org.commonmark.internal.inline.HtmlInlineParser
- All Implemented Interfaces:
InlineContentParser
Attempt to parse inline HTML.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AsciiMatcher
private static final AsciiMatcher
private static final AsciiMatcher
private static final AsciiMatcher
private static final AsciiMatcher
private static final AsciiMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ParsedInline
htmlInline
(Position start, Scanner scanner) private static boolean
private static boolean
tryClosingTag
(Scanner scanner) private static boolean
tryComment
(Scanner scanner) private static boolean
tryDeclaration
(Scanner scanner) private static boolean
tryOpenTag
(Scanner scanner) tryParse
(InlineParserState inlineParserState) Try to parse inline content starting from the current position.private static boolean
tryProcessingInstruction
(Scanner scanner)
-
Field Details
-
asciiLetter
-
tagNameStart
-
tagNameContinue
-
attributeStart
-
attributeContinue
-
attributeValueEnd
-
-
Constructor Details
-
HtmlInlineParser
public HtmlInlineParser()
-
-
Method Details
-
tryParse
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 ofInlineContentParserFactory.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 interfaceInlineContentParser
- 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
-
htmlInline
-
tryOpenTag
-
tryClosingTag
-
tryProcessingInstruction
-
tryComment
-
tryCdata
-
tryDeclaration
-