APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.org.commonmark.internal.inline

public abstract Class EmphasisDelimiterProcessor

extends Object
implements DelimiterProcessor
Class Inheritance
All Implemented Interfaces
jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor
Known Direct Subclasses
jdk.internal.org.commonmark.internal.inline.UnderscoreDelimiterProcessor, jdk.internal.org.commonmark.internal.inline.AsteriskDelimiterProcessor
Imports
jdk.internal.org.commonmark.node.*, jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor, .DelimiterRun

Field Summary

Modifier and TypeField and Description
private final char

Constructor Summary

AccessConstructor and Description
protected
EmphasisDelimiterProcessor(char delimiterChar)

Method Summary

Modifier and TypeMethod and Description
public char
public int
getMinLength()

Implements jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.getMinLength.

Minimum number of delimiter characters that are needed to activate this.

public char
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delimiterCharback to summary
private final char delimiterChar

Constructor Detail

EmphasisDelimiterProcessorback to summary
protected EmphasisDelimiterProcessor(char delimiterChar)

Method Detail

getClosingCharacterback to summary
public char getClosingCharacter()

Implements jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.getClosingCharacter.

Annotations
@Override
getMinLengthback to summary
public int getMinLength()

Implements jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.getMinLength.

Doc from jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.getMinLength.

Minimum number of delimiter characters that are needed to activate this. Must be at least 1.

Annotations
@Override
getOpeningCharacterback to summary
public char getOpeningCharacter()

Implements jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.getOpeningCharacter.

Annotations
@Override
processback to summary
public int process(DelimiterRun openingRun, DelimiterRun closingRun)

Implements jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.process.

Doc from jdk.internal.org.commonmark.parser.delimiter.DelimiterProcessor.process.

Process the delimiter runs.

The processor can examine the runs and the nodes and decide if it wants to process or not. If not, it should not change any nodes and return 0. If yes, it should do the processing (wrapping nodes, etc) and then return how many delimiters were used.

Note that removal (unlinking) of the used delimiter Text nodes is done by the caller.

Annotations
@Override