Interface ScriptProcessor

All Known Subinterfaces:
ScriptTransformer

@ConsumerType public interface ScriptProcessor
ScriptProcessor processes a script by minifying, obfuscating etc.
  • Field Details

  • Method Details

    • getName

      @Nonnull String getName()
      Name of this processor.
      Returns:
      the name
    • handles

      boolean handles(@Nonnull LibraryType type)
      Checks if this processor can handle the give library type. handles the file with the given extension
      Parameters:
      type - the type
      Returns:
      true if this processor handles the type
    • process

      boolean process(@Nonnull LibraryType type, @Nonnull ScriptResource source, @Nonnull Writer output, @Nonnull Map<String,String> options) throws IOException
      Processes the given input using the options.
      Parameters:
      type - the library type to process
      source - input source
      output - output writer
      options - processing options.
      Returns:
      true if the sources were processed
      Throws:
      IOException - if an I/O error occurs