Class ListItem


  • public class ListItem
    extends Block
    • Field Detail

      • markerIndent

        private java.lang.Integer markerIndent
      • contentIndent

        private java.lang.Integer contentIndent
    • Constructor Detail

      • ListItem

        public ListItem()
    • Method Detail

      • accept

        public void accept​(Visitor visitor)
        Specified by:
        accept in class Node
      • getMarkerIndent

        public java.lang.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
      • setMarkerIndent

        public void setMarkerIndent​(java.lang.Integer markerIndent)
      • getContentIndent

        public java.lang.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.

      • setContentIndent

        public void setContentIndent​(java.lang.Integer contentIndent)