Interface CodegenOptions
public interface CodegenOptions
Configuration options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionCodegen option to configure module name of the module being processed.Codegen option to configure module name of the module being processed.static final Option<CodegenScope> Codegen option to configure codegen scope.Codegen option to configure creation of META-INF services when module-info.java is present.Codegen option to configure how many times to repeat theINDENT_TYPEfor indentation.static final Option<IndentType> Codegen option to configure which indent type to use (a space character, or a tab character).static final StringTag to define custom module name.static final StringTag to define custom package name. -
Method Summary
Modifier and TypeMethodDescriptionList of string options.Set of string options.default booleanBoolean option that defaults to false.Find an option.default <T extends Enum<T>>
TEnumeration option.default voidValidate options against the permitted options.
-
Field Details
-
TAG_CODEGEN_MODULE
-
TAG_CODEGEN_PACKAGE
-
CODEGEN_SCOPE
Codegen option to configure codegen scope. -
CODEGEN_MODULE
-
CODEGEN_PACKAGE
-
INDENT_TYPE
Codegen option to configure which indent type to use (a space character, or a tab character). -
INDENT_COUNT
Codegen option to configure how many times to repeat theINDENT_TYPEfor indentation.Defaults to
4. -
CREATE_META_INF_SERVICES
-
-
Method Details
-
option
-
option
Enumeration option.- Type Parameters:
T- type of the enum- Parameters:
option- option namedefaultValue- default valueenumType- type of the enum- Returns:
- option value, or default value if not defined
- Throws:
IllegalArgumentException- in case the enum value is not valid for the provided enum type
-
enabled
-
asList
-
asSet
-
validate
-