Class SpringCodeFormatter
java.lang.Object
org.eclipse.jdt.core.formatter.CodeFormatter
io.spring.javaformat.eclipse.formatter.SpringCodeFormatter
- Direct Known Subclasses:
SpringCodeFormatterJdk17Spaces,SpringCodeFormatterJdk17Tabs,SpringCodeFormatterJdk8Spaces,SpringCodeFormatterJdk8Tabs
public abstract class SpringCodeFormatter
extends org.eclipse.jdt.core.formatter.CodeFormatter
Eclipse
CodeFormatter base class for Spring formatting.- Author:
- Phillip Webb
-
Field Summary
Fields inherited from class org.eclipse.jdt.core.formatter.CodeFormatter
F_INCLUDE_COMMENTS, K_CLASS_BODY_DECLARATIONS, K_COMPILATION_UNIT, K_EXPRESSION, K_JAVA_DOC, K_MODULE_INFO, K_MULTI_LINE_COMMENT, K_SINGLE_LINE_COMMENT, K_STATEMENTS, K_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionSpringCodeFormatter(io.spring.javaformat.config.JavaFormatConfig javaFormatConfig) -
Method Summary
Modifier and TypeMethodDescriptioncreateIndentationString(int indentationLevel) org.eclipse.text.edits.TextEditorg.eclipse.text.edits.TextEditformat(int kind, String source, org.eclipse.jface.text.IRegion[] regions, int indentationLevel, String lineSeparator) voidsetOptions(Map<String, String> options)
-
Constructor Details
-
SpringCodeFormatter
public SpringCodeFormatter(io.spring.javaformat.config.JavaFormatConfig javaFormatConfig)
-
-
Method Details
-
format
public org.eclipse.text.edits.TextEdit format(int kind, String source, int offset, int length, int indentationLevel, String lineSeparator) - Specified by:
formatin classorg.eclipse.jdt.core.formatter.CodeFormatter
-
format
public org.eclipse.text.edits.TextEdit format(int kind, String source, org.eclipse.jface.text.IRegion[] regions, int indentationLevel, String lineSeparator) - Specified by:
formatin classorg.eclipse.jdt.core.formatter.CodeFormatter
-
createIndentationString
- Overrides:
createIndentationStringin classorg.eclipse.jdt.core.formatter.CodeFormatter
-
setOptions
- Overrides:
setOptionsin classorg.eclipse.jdt.core.formatter.CodeFormatter
-