Interface IJSWriterSettings

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    JSWriterSettings

    public interface IJSWriterSettings
    extends Serializable
    Read only interface with all JS writer settings.
    Author:
    Philip Helger
    • Method Detail

      • isIndentAndAlign

        boolean isIndentAndAlign()
        Returns:
        true if the code should be indented and aligned.
      • isGenerateComments

        boolean isGenerateComments()
        Returns:
        true if comments should be generated at all.
      • getIndent

        @Nonnull
        @Nonempty
        String getIndent()
        Returns:
        The string used for indenting a single level. By default it is 2 spaces.
      • getNewLineMode

        @Nonnull
        com.helger.commons.system.ENewLineMode getNewLineMode()
        Returns:
        The newline mode to be used. By default it is the platform specific new line mode. Never null.
      • getNewLineString

        @Nonnull
        @Nonempty
        String getNewLineString()
        Returns:
        The string representing the new line mode. A shortcut for getNewLineMode().getText().