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 AsciiMatcherprivate static final AsciiMatcherprivate static final AsciiMatcherprivate static final AsciiMatcherprivate static final AsciiMatcherprivate static final AsciiMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ParsedInlinehtmlInline(Position start, Scanner scanner) private static booleanprivate static booleantryClosingTag(Scanner scanner) private static booleantryComment(Scanner scanner) private static booleantryDeclaration(Scanner scanner) private static booleantryOpenTag(Scanner scanner) tryParse(InlineParserState inlineParserState) Try to parse inline content starting from the current position.private static booleantryProcessingInstruction(Scanner scanner)
-
Field Details
-
asciiLetter
-
tagNameStart
-
tagNameContinue
-
attributeStart
-
attributeContinue
-
attributeValueEnd
-
-
Constructor Details
-
HtmlInlineParser
public HtmlInlineParser()
-
-
Method Details
-
tryParse
Description copied from interface:InlineContentParserTry 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:
tryParsein 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
-