Interface FormatterProvider


public interface FormatterProvider
Allows attaching a custom source formatter.

Note: This interface is meant to be consumed by Roaster only.

Author:
George Gastaldi
  • Method Details

    • format

      String format(String source)
      Format the provided source code.
      Parameters:
      source - a Java source file content
      Returns:
      the formatted version of the source
    • format

      String format(Properties properties, String source)
      Format the source code, given the required Properties. The properties are meant to interpreted implementation specific.
      Parameters:
      properties - implementation specific formatting options
      source - a Java source file content
      Returns:
      the formatted version of the source