Class 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
    • Constructor Detail

      • ExtendedCodeFormatter

        public ExtendedCodeFormatter()
      • ExtendedCodeFormatter

        public ExtendedCodeFormatter​(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions defaultCodeFormatterOptions,
                                     Map<String,​String> options)
      • ExtendedCodeFormatter

        public ExtendedCodeFormatter​(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions options)
      • ExtendedCodeFormatter

        public ExtendedCodeFormatter​(Map<String,​String> options)
    • Method Detail

      • addPreparator

        protected void addPreparator​(Preparator preparator)
      • tokenizeSource

        protected void tokenizeSource​(int kind)
        Overrides:
        tokenizeSource in class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
      • prepareWraps

        protected void prepareWraps​(int kind)
        Overrides:
        prepareWraps in class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter