Interface ScriptCompiler


  • @ConsumerType
    public interface ScriptCompiler
    Compiler defines a generic compiler.
    • Method Detail

      • getName

        String getName()
        Name of this compiler.
        Returns:
        the name
      • handles

        boolean handles​(String extension)
        Checks if this compiler handles the file with the given extension
        Parameters:
        extension - extension, eg 'less'
        Returns:
        true if this compiler handles the extension
      • getMimeType

        String getMimeType()
        Returns the mime type of the output file.
        Returns:
        the mime type.
      • getOutputExtension

        String getOutputExtension()
        Returns the extension of the output file
        Returns:
        the extension of the output file. eg. 'css'