Package org.commonmark.internal.inline
Class EntityInlineParser
java.lang.Object
org.commonmark.internal.inline.EntityInlineParser
- All Implemented Interfaces:
InlineContentParser
Attempts to parse an HTML entity or numeric character reference.
-
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ParsedInline
tryParse
(InlineParserState inlineParserState) Try to parse inline content starting from the current position.
-
Field Details
-
hex
-
dec
-
entityStart
-
entityContinue
-
-
Constructor Details
-
EntityInlineParser
public EntityInlineParser()
-
-
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
-
entity
-