public interface PreFormatProcessor
| Modifier and Type | Field and Description |
|---|---|
static ExtensionPointName<PreFormatProcessor> |
EP_NAME |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
changesWhitespacesOnly()
Returns true if this preprocessor changes only whitespaces and can run when the canChangeWhiteSpacesOnly flag is passed to the formatter.
|
TextRange |
process(ASTNode element,
TextRange range)
Callback to be invoked before formatting.
|
static final ExtensionPointName<PreFormatProcessor> EP_NAME
TextRange process(ASTNode element, TextRange range)
element - target element which contents can be adjusted if necessaryrange - target range within the given elementdefault boolean changesWhitespacesOnly()