Class SassCompiler

    • Method Detail

      • getVersion

        public com.sass_lang.embedded_protocol.OutboundMessage.VersionResponse getVersion()
                                                                                   throws IOException
        Throws:
        IOException
      • compileRequestBuilder

        protected com.sass_lang.embedded_protocol.InboundMessage.CompileRequest.Builder compileRequestBuilder()
      • getOutputStyle

        public com.sass_lang.embedded_protocol.OutputStyle getOutputStyle()
        How to format the CSS output.
        See Also:
        InboundMessage.CompileRequest.getStyle()
      • setOutputStyle

        public void setOutputStyle​(com.sass_lang.embedded_protocol.OutputStyle outputStyle)
        How to format the CSS output.
        See Also:
        InboundMessage.CompileRequest.getStyle()
      • isGenerateSourceMaps

        public boolean isGenerateSourceMaps()
        Whether to generate a source map. Note that this will *not* add a source map comment to the stylesheet; that's up to the host or its users.
        See Also:
        InboundMessage.CompileRequest.getSourceMap()
      • setGenerateSourceMaps

        public void setGenerateSourceMaps​(boolean generateSourceMaps)
        Whether to generate a source map. Note that this will *not* add a source map comment to the stylesheet; that's up to the host or its users.
        See Also:
        InboundMessage.CompileRequest.getSourceMap()
      • isAlertColor

        public boolean isAlertColor()
        Whether to use terminal colors in the formatted message of errors and logs.
        See Also:
        InboundMessage.CompileRequest.getAlertColor()
      • setAlertColor

        public void setAlertColor​(boolean alertColor)
        Whether to use terminal colors in the formatted message of errors and logs.
        See Also:
        InboundMessage.CompileRequest.getAlertColor()
      • isAlertAscii

        public boolean isAlertAscii()
        Whether to encode the formatted message of errors and logs in ASCII.
        See Also:
        InboundMessage.CompileRequest.getAlertAscii()
      • setAlertAscii

        public void setAlertAscii​(boolean alertAscii)
        Whether to encode the formatted message of errors and logs in ASCII.
        See Also:
        InboundMessage.CompileRequest.getAlertAscii()
      • isVerbose

        public boolean isVerbose()
        Whether to report all deprecation warnings or only the first few ones. If this is `false`, the compiler may choose not to send events for repeated deprecation warnings. If this is `true`, the compiler must emit an event for every deprecation warning it encounters.
        See Also:
        InboundMessage.CompileRequest.getVerbose()
      • setVerbose

        public void setVerbose​(boolean verbose)
        Whether to report all deprecation warnings or only the first few ones. If this is `false`, the compiler may choose not to send events for repeated deprecation warnings. If this is `true`, the compiler must emit an event for every deprecation warning it encounters.
        See Also:
        InboundMessage.CompileRequest.getVerbose()
      • isQuietDeps

        public boolean isQuietDeps()
        Whether to omit events for deprecation warnings coming from dependencies (files loaded from a different importer than the input).
        See Also:
        InboundMessage.CompileRequest.getQuietDeps()
      • setQuietDeps

        public void setQuietDeps​(boolean quietDeps)
        Whether to omit events for deprecation warnings coming from dependencies (files loaded from a different importer than the input).
        See Also:
        InboundMessage.CompileRequest.getQuietDeps()
      • isSourceMapIncludeSources

        public boolean isSourceMapIncludeSources()
        Whether to include sources in the generated sourcemap
        See Also:
        InboundMessage.CompileRequest.getSourceMapIncludeSources()
      • setSourceMapIncludeSources

        public void setSourceMapIncludeSources​(boolean sourceMapIncludeSources)
        Whether to include sources in the generated sourcemap
        See Also:
        InboundMessage.CompileRequest.getSourceMapIncludeSources()
      • isEmitCharset

        public boolean isEmitCharset()
        Whether to emit a `@charset`/BOM for non-ASCII stylesheets.
        See Also:
        InboundMessage.CompileRequest.getCharset()
      • setEmitCharset

        public void setEmitCharset​(boolean emitCharset)
        Whether to emit a `@charset`/BOM for non-ASCII stylesheets.
        See Also:
        InboundMessage.CompileRequest.getCharset()
      • isSilent

        public boolean isSilent()
        Whether to silently suppresses all `LogEvent`s.
        See Also:
        InboundMessage.CompileRequest.getSilent()
      • setSilent

        public void setSilent​(boolean silent)
        Whether to silently suppresses all `LogEvent`s.
        See Also:
        InboundMessage.CompileRequest.getSilent()
      • setLoggingHandler

        public void setLoggingHandler​(LoggingHandler loggingHandler)
      • getLoadPaths

        public List<File> getLoadPaths()
      • setLoadPaths

        public void setLoadPaths​(List<File> loadPaths)