Class PrettyPrinterConfiguration

    • Constructor Detail

      • PrettyPrinterConfiguration

        public PrettyPrinterConfiguration()
        Deprecated.
    • Method Detail

      • getIndentation

        public Indentation getIndentation()
        Deprecated.
      • getIndent

        @Deprecated
        public java.lang.String getIndent()
        Deprecated.
        (@see Indentation.getIndent())
        Returns:
        the string that will be used to indent.
      • getIndentSize

        @Deprecated
        public int getIndentSize()
        Deprecated.
        (@see Indentation.size)
        Returns:
        the indentation size.
      • setIndentSize

        @Deprecated
        public PrettyPrinterConfiguration setIndentSize​(int indentSize)
        Deprecated.
        (@see Indentation.size())
        Set the size of the indent in characters.
      • getIndentType

        @Deprecated
        public Indentation.IndentType getIndentType()
        Deprecated.
        (@see Indentation.type)
        Get the type of indent to produce.
      • getTabWidth

        @Deprecated
        public int getTabWidth()
        Deprecated.
        (@see Indentation.size)
        Get the tab width for pretty aligning.
      • setTabWidth

        @Deprecated
        public PrettyPrinterConfiguration setTabWidth​(int tabWidth)
        Deprecated.
        (@see Indentation.size)
        Set the tab width for pretty aligning.
      • isOrderImports

        public boolean isOrderImports()
        Deprecated.
      • isPrintComments

        public boolean isPrintComments()
        Deprecated.
      • isIgnoreComments

        public boolean isIgnoreComments()
        Deprecated.
      • isSpaceAroundOperators

        public boolean isSpaceAroundOperators()
        Deprecated.
      • isPrintJavadoc

        public boolean isPrintJavadoc()
        Deprecated.
      • isColumnAlignParameters

        public boolean isColumnAlignParameters()
        Deprecated.
      • isColumnAlignFirstMethodChain

        public boolean isColumnAlignFirstMethodChain()
        Deprecated.
      • isIndentCaseInSwitch

        public boolean isIndentCaseInSwitch()
        Deprecated.
      • setPrintComments

        public PrettyPrinterConfiguration setPrintComments​(boolean printComments)
        Deprecated.
        When true, all comments will be printed, unless printJavadoc is false, then only line and block comments will be printed.
      • setPrintJavadoc

        public PrettyPrinterConfiguration setPrintJavadoc​(boolean printJavadoc)
        Deprecated.
        When true, Javadoc will be printed.
      • setSpaceAroundOperators

        public PrettyPrinterConfiguration setSpaceAroundOperators​(boolean spaceAroundOperators)
        Deprecated.
        Set if there should be spaces between operators
      • setColumnAlignParameters

        public PrettyPrinterConfiguration setColumnAlignParameters​(boolean columnAlignParameters)
        Deprecated.
      • setColumnAlignFirstMethodChain

        public PrettyPrinterConfiguration setColumnAlignFirstMethodChain​(boolean columnAlignFirstMethodChain)
        Deprecated.
      • getEndOfLineCharacter

        public java.lang.String getEndOfLineCharacter()
        Deprecated.
      • setEndOfLineCharacter

        public PrettyPrinterConfiguration setEndOfLineCharacter​(java.lang.String endOfLineCharacter)
        Deprecated.
        Set the character to append when a line should end. Example values: "\n", "\r\n", "".
      • setOrderImports

        public PrettyPrinterConfiguration setOrderImports​(boolean orderImports)
        Deprecated.
        When true, orders imports by alphabetically.
      • getMaxEnumConstantsToAlignHorizontally

        public int getMaxEnumConstantsToAlignHorizontally()
        Deprecated.
      • setMaxEnumConstantsToAlignHorizontally

        public PrettyPrinterConfiguration setMaxEnumConstantsToAlignHorizontally​(int maxEnumConstantsToAlignHorizontally)
        Deprecated.
        By default enum constants get aligned like this:
             enum X {
                A, B, C, D
             }
         
        until the amount of constants passes this currentValue (5 by default). Then they get aligned like this:
             enum X {
                A,
                B,
                C,
                D,
                E,
                F,
                G
             }
         
        Set it to a large number to always align horizontally. Set it to 1 or less to always align vertically.