Top Fields Constructors Methods
com.vladsch.flexmark.parser.core.delimiter

public Class Delimiter

extends Object
implements DelimiterRun
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.parser.delimiter.DelimiterRun
Imports
com.vladsch.flexmark.ast.Text, com.vladsch.flexmark.parser.delimiter.DelimiterRun, com.vladsch.flexmark.util.ast.DelimitedNode, .Node, com.vladsch.flexmark.util.sequence.BasedSequence

Field Summary

Modifier and TypeField and Description
private final boolean
canClose

Can close emphasis, see spec.

private final boolean
canOpen

Can open emphasis, see spec.

private final char
private int
private final BasedSequence
private boolean
matched

Skip this delimiter when looking for a link/image opener because it was already matched.

private Delimiter
private final Text
private int
private Delimiter

Constructor Summary

AccessConstructor and Description
public
Delimiter(BasedSequence input, Text node, char delimiterChar, boolean canOpen, boolean canClose, Delimiter previous, int index)

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public void
convertDelimitersToText(int delimitersUsed, Delimiter closer)

public char
public int
public int
public BasedSequence
public BasedSequence
getLeadChars(int delimiterUse)

public Delimiter
public Text
public Text
public int
public Delimiter
public Text
public int
public BasedSequence
getTailChars(int delimiterUse)

public boolean
public int
public void
public void
setIndex(int index)

public void
setMatched(boolean matched)

public void
public void
setNumDelims(int numDelims)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

canCloseback to summary
private final boolean canClose

Can close emphasis, see spec.

canOpenback to summary
private final boolean canOpen

Can open emphasis, see spec.

delimiterCharback to summary
private final char delimiterChar
indexback to summary
private int index
inputback to summary
private final BasedSequence input
matchedback to summary
private boolean matched

Skip this delimiter when looking for a link/image opener because it was already matched.

nextback to summary
private Delimiter next
nodeback to summary
private final Text node
numDelimsback to summary
private int numDelims
previousback to summary
private Delimiter previous

Constructor Detail

Delimiterback to summary
public Delimiter(BasedSequence input, Text node, char delimiterChar, boolean canOpen, boolean canClose, Delimiter previous, int index)

Method Detail

canCloseback to summary
public boolean canClose()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.canClose.

Returns:boolean

Doc from com.vladsch.flexmark.parser.delimiter.DelimiterRun.canClose.

whether this can close a delimiter

Annotations
@Override
canOpenback to summary
public boolean canOpen()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.canOpen.

Returns:boolean

Doc from com.vladsch.flexmark.parser.delimiter.DelimiterRun.canOpen.

whether this can open a delimiter

Annotations
@Override
convertDelimitersToTextback to summary
public void convertDelimitersToText(int delimitersUsed, Delimiter closer)
getDelimiterCharback to summary
public char getDelimiterChar()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.getDelimiterChar.

Annotations
@Override
getEndIndexback to summary
public int getEndIndex()
getIndexback to summary
public int getIndex()
getInputback to summary
public BasedSequence getInput()
getLeadCharsback to summary
public BasedSequence getLeadChars(int delimiterUse)
getNextback to summary
public Delimiter getNext()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.getNext.

Annotations
@Override
getNextNonDelimiterTextNodeback to summary
public Text getNextNonDelimiterTextNode()
getNodeback to summary
public Text getNode()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.getNode.

Annotations
@Override
getNumDelimsback to summary
public int getNumDelims()
getPreviousback to summary
public Delimiter getPrevious()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.getPrevious.

Annotations
@Override
getPreviousNonDelimiterTextNodeback to summary
public Text getPreviousNonDelimiterTextNode()
getStartIndexback to summary
public int getStartIndex()
getTailCharsback to summary
public BasedSequence getTailChars(int delimiterUse)
isMatchedback to summary
public boolean isMatched()
lengthback to summary
public int length()

Implements com.vladsch.flexmark.parser.delimiter.DelimiterRun.length.

Returns:int

Doc from com.vladsch.flexmark.parser.delimiter.DelimiterRun.length.

the number of characters in this delimiter run (that are left for processing)

Annotations
@Override
moveNodesBetweenDelimitersToback to summary
public void moveNodesBetweenDelimitersTo(DelimitedNode delimitedNode, Delimiter closer)
setIndexback to summary
public void setIndex(int index)
setMatchedback to summary
public void setMatched(boolean matched)
setNextback to summary
public void setNext(Delimiter next)
setNumDelimsback to summary
public void setNumDelims(int numDelims)
setPreviousback to summary
public void setPrevious(Delimiter previous)