Package org.commonmark.internal.inline
Class EntityInlineParser
- java.lang.Object
-
- org.commonmark.internal.inline.EntityInlineParser
-
- All Implemented Interfaces:
InlineContentParser
public class EntityInlineParser extends java.lang.Object implements InlineContentParser
Attempts to parse a HTML entity or numeric character reference.
-
-
Field Summary
Fields Modifier and Type Field Description private static AsciiMatcher
dec
private static AsciiMatcher
entityContinue
private static AsciiMatcher
entityStart
private static AsciiMatcher
hex
-
Constructor Summary
Constructors Constructor Description EntityInlineParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ParsedInline
entity(Scanner scanner, Position start)
ParsedInline
tryParse(InlineParserState inlineParserState)
-
-
-
Field Detail
-
hex
private static final AsciiMatcher hex
-
dec
private static final AsciiMatcher dec
-
entityStart
private static final AsciiMatcher entityStart
-
entityContinue
private static final AsciiMatcher entityContinue
-
-
Method Detail
-
tryParse
public ParsedInline tryParse(InlineParserState inlineParserState)
- Specified by:
tryParse
in interfaceInlineContentParser
-
entity
private ParsedInline entity(Scanner scanner, Position start)
-
-