Class IndentationStyle
java.lang.Object
io.jenkins.plugins.xmleditor.core.edit.IndentationStyle
Indentation conventions of a document, used only to lay out new content.
-
Method Summary
Modifier and TypeMethodDescriptionchildIndent(LElement parent) Indentation for children ofparent: the one of its existing children, or the parent's plus a unit.static IndentationStyleDetects the indentation unit as the most frequent difference between a parent's and a child's indent.static StringThe whitespace beforenodeon its line when the node starts a line, otherwisenull.unit()
-
Method Details
-
detect
Detects the indentation unit as the most frequent difference between a parent's and a child's indent. -
unit
-
indentOf
The whitespace beforenodeon its line when the node starts a line, otherwisenull. The root element and top-level nodes at the start of the file have an empty indentation. -
childIndent
Indentation for children ofparent: the one of its existing children, or the parent's plus a unit.
-