Example usage for Java org.eclipse.jdt.core.formatter CodeFormatter fields, constructors, methods, implement or subclass
The text is from its open source code.
int | K_UNKNOWN Unknown kind Since 3.6, if the corresponding comment options are set to |
int | K_EXPRESSION Kind used to format an expression This kind is not applicable to module descriptions. |
int | K_STATEMENTS Kind used to format a set of statements This kind is not applicable to module descriptions. |
int | K_CLASS_BODY_DECLARATIONS Kind used to format a set of class body declarations This kind is not applicable to module descriptions. |
int | K_COMPILATION_UNIT Kind used to format a compilation unit Note: since 3.14, if the formatted compilation unit is a module description (i.e. |
int | K_JAVA_DOC Kind used to format a Javadoc comment |
int | F_INCLUDE_COMMENTS Flag used to include the comments during the formatting of the code snippet. |
TextEdit | format(int kind, String source, int offset, int length, int indentationLevel, String lineSeparator) Format source , and returns a text edit that correspond to the difference between the given string and the formatted string. |