Class ExtendedCodeFormatter
java.lang.Object
org.eclipse.jdt.core.formatter.CodeFormatter
org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
org.eclipse.jdt.internal.formatter.ExtendedCodeFormatter
public class ExtendedCodeFormatter
extends org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
Extended version of
DefaultCodeFormatter that allows additional
preparators to be used.- Author:
- Phillip Webb
-
Field Summary
Fields inherited from class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
DEBUG, previewEnabled, sourceLevel, tokensFields 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
ConstructorsConstructorDescriptionExtendedCodeFormatter(Map<String, String> options) ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions options) ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String, String> options) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPreparator(Preparator preparator) protected voidprepareWraps(int kind) protected voidtokenizeSource(int kind) Methods inherited from class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
createIndentationString, format, format, setOptions
-
Constructor Details
-
ExtendedCodeFormatter
public ExtendedCodeFormatter() -
ExtendedCodeFormatter
-
ExtendedCodeFormatter
public ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions options) -
ExtendedCodeFormatter
-
-
Method Details
-
addPreparator
-
tokenizeSource
protected void tokenizeSource(int kind) - Overrides:
tokenizeSourcein classorg.eclipse.jdt.internal.formatter.DefaultCodeFormatter
-
prepareWraps
protected void prepareWraps(int kind) - Overrides:
prepareWrapsin classorg.eclipse.jdt.internal.formatter.DefaultCodeFormatter
-