Package org.jboss.forge.roaster.spi
Interface FormatterProvider
-
public interface FormatterProviderAllows attaching a custom source formatter.Note: This interface is meant to be consumed by
Roasteronly.- Author:
- George Gastaldi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringformat(java.lang.String source)Format the provided source code.java.lang.Stringformat(java.util.Properties properties, java.lang.String source)Format the source code, given the requiredProperties.
-
-
-
Method Detail
-
format
java.lang.String format(java.lang.String source)
Format the provided source code.- Parameters:
source- a Java source file content- Returns:
- the formatted version of the source
-
format
java.lang.String format(java.util.Properties properties, java.lang.String source)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
-
-