Top Fields Constructors Methods
jdk.internal.org.commonmark.node

public Class ListItem

extends Block
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Integer
private Integer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public Integer
getContentIndent()

Returns the indent of the content in columns (spaces or tab stop of 4) if available, or null otherwise.

public Integer
getMarkerIndent()

Returns the indent of the marker such as "-" or "1." in columns (spaces or tab stop of 4) if available, or null otherwise.

public void
setContentIndent(Integer contentIndent)

public void
setMarkerIndent(Integer markerIndent)

Inherited from jdk.internal.org.commonmark.node.Block:
getParentsetParent

Field Detail

contentIndentback to summary
private Integer contentIndent
markerIndentback to summary
private Integer markerIndent

Constructor Detail

ListItemback to summary
public ListItem()

Method Detail

acceptback to summary
public void accept(Visitor visitor)

Implements abstract jdk.internal.org.commonmark.node.Node.accept.

Annotations
@Override
getContentIndentback to summary
public Integer getContentIndent()

Returns the indent of the content in columns (spaces or tab stop of 4) if available, or null otherwise. The content indent is counted from the beginning of the line and includes the marker on the first line.

Some examples and their content indent:

- Foo
Content indent: 2
 - Foo
Content indent: 3
  1. Foo
Content indent: 5

Note that subsequent lines in the same list item need to be indented by at least the content indent to be counted as part of the list item.

getMarkerIndentback to summary
public Integer getMarkerIndent()

Returns the indent of the marker such as "-" or "1." in columns (spaces or tab stop of 4) if available, or null otherwise.

Some examples and their marker indent:

- Foo
Marker indent: 0
 - Foo
Marker indent: 1
  1. Foo
Marker indent: 2
setContentIndentback to summary
public void setContentIndent(Integer contentIndent)
setMarkerIndentback to summary
public void setMarkerIndent(Integer markerIndent)