public interface Configuration
Configuration interface describes the fully-qualified class name and the input
parameters for an individual template invocation. A template can be invoke multiple times
with different configurations.| Modifier and Type | Method and Description |
|---|---|
static Options |
defaults() |
String |
fullyQualifiedClassName() |
default boolean |
isDefault(Function<Options,?> option)
Checks if the specified option is set to the default value.
|
default boolean |
isDefault(Options options,
Function<Options,?> option) |
default Options |
options()
Retrieves additional configuration options that were provided as an annotation parameter or
package annotation.
|
Map<String,Object> |
parameters() |
default UnaryOperator<Writer> |
postProcessor() |
String fullyQualifiedClassName()
Map<String,Object> parameters()
default UnaryOperator<Writer> postProcessor()
default Options options()
default boolean isDefault(Function<Options,?> option)
@Option(fileExtension=".java")).option - the option to check (typically as a method reference)true if the option value is identical to the default value, false otherwisestatic Options defaults()
Copyright © 2024. All rights reserved.