Java org.eclipse.jdt.core.formatter CodeFormatter fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.formatter CodeFormatter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.formatter CodeFormatter.

The text is from its open source code.

Subclass

org.eclipse.jdt.core.formatter.CodeFormatter has subclasses.
Click this link to see all its subclasses.

Field

intK_UNKNOWN
Unknown kind

Since 3.6, if the corresponding comment options are set to true then it is also possible to format the comments on the fly by adding the #F_INCLUDE_COMMENTS flag to this kind of format.

intK_EXPRESSION
Kind used to format an expression

This kind is not applicable to module descriptions.

intK_STATEMENTS
Kind used to format a set of statements

This kind is not applicable to module descriptions.

intK_CLASS_BODY_DECLARATIONS
Kind used to format a set of class body declarations

This kind is not applicable to module descriptions.

intK_COMPILATION_UNIT
Kind used to format a compilation unit

Note: since 3.14, if the formatted compilation unit is a module description (i.e.

intK_JAVA_DOC
Kind used to format a Javadoc comment
intF_INCLUDE_COMMENTS
Flag used to include the comments during the formatting of the code snippet.

Method

TextEditformat(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.