Example usage for Java org.eclipse.jdt.core.formatter IndentManipulation fields, constructors, methods, implement or subclass
The text is from its open source code.
String | changeIndent(String code, int indentUnitsToRemove, int tabWidth, int indentWidth, String newIndentString, String lineDelim) Change the indent of a, possible multiple line, code string. |
String | extractIndentString(String line, int tabWidth, int indentWidth) Returns the leading indentation string of the given line. |
int | getIndentWidth(Map options) Returns the tab width as configured in the given map. |
int | getTabWidth(Map options) Returns the tab width as configured in the given map. |
boolean | isLineDelimiterChar(char ch) Returns true if the given character is a line delimiter character. |
int | measureIndentUnits(CharSequence line, int tabWidth, int indentWidth) Returns the indentation of the given line in indentation units. |