Package org.jboss.forge.roaster.spi
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 Summary
Modifier and TypeMethodDescriptionFormat the provided source code.format(Properties properties, String source) Format the source code, given the requiredProperties.
-
Method Details
-
format
Format the provided source code.- Parameters:
source- a Java source file content- Returns:
- the formatted version of the source
-
format
Format the source code, given the requiredProperties. The properties are meant to interpreted implementation specific.- Parameters:
properties- implementation specific formatting optionssource- a Java source file content- Returns:
- the formatted version of the source
-