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