Record Class MavenPluginUtils.MavenTaskConfig
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.visitors.maven.MavenPluginUtils.MavenTaskConfig
- Record Components:
source
- The configuration sourceparameters
- The parametersmethodName
- The run method namepackageName
- The package namenamePrefix
- The type name prefixmicronautPlugin
- Whether to extend micronaut pluginpropertyPrefix
- The prefix for maven propertiesenabledPropertyName
- The name of the enabled propertytaskJavadoc
- The javadoc for the whole taskmethodJavadoc
- The javadoc for the executable methodgeneratedModels
- Additional generated models
- Enclosing class:
- MavenPluginUtils
public static record MavenPluginUtils.MavenTaskConfig(io.micronaut.inject.ast.ClassElement source, List<PluginUtils.ParameterConfig> parameters, @NonNull String methodName, @NonNull String packageName, @NonNull String namePrefix, boolean micronautPlugin, @Nullable String propertyPrefix, @Nullable String enabledPropertyName, @NonNull String taskJavadoc, @NonNull String methodJavadoc, @NonNull List<ModelUtils.GeneratedModel> generatedModels)
extends Record
Configuration for a gradle task type.
-
Constructor Summary
ConstructorsConstructorDescriptionMavenTaskConfig
(io.micronaut.inject.ast.ClassElement source, List<PluginUtils.ParameterConfig> parameters, @NonNull String methodName, @NonNull String packageName, @NonNull String namePrefix, boolean micronautPlugin, @Nullable String propertyPrefix, @Nullable String enabledPropertyName, @NonNull String taskJavadoc, @NonNull String methodJavadoc, @NonNull List<ModelUtils.GeneratedModel> generatedModels) Creates an instance of aMavenTaskConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of theenabledPropertyName
record component.final boolean
Indicates whether some other object is "equal to" this one.@NonNull List<ModelUtils.GeneratedModel>
Returns the value of thegeneratedModels
record component.final int
hashCode()
Returns a hash code value for this object.@NonNull String
Returns the value of themethodJavadoc
record component.@NonNull String
Returns the value of themethodName
record component.boolean
Returns the value of themicronautPlugin
record component.@NonNull String
Returns the value of thenamePrefix
record component.@NonNull String
Returns the value of thepackageName
record component.Returns the value of theparameters
record component.@Nullable String
Returns the value of thepropertyPrefix
record component.io.micronaut.inject.ast.ClassElement
source()
Returns the value of thesource
record component.@NonNull String
Returns the value of thetaskJavadoc
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MavenTaskConfig
public MavenTaskConfig(io.micronaut.inject.ast.ClassElement source, List<PluginUtils.ParameterConfig> parameters, @NonNull @NonNull String methodName, @NonNull @NonNull String packageName, @NonNull @NonNull String namePrefix, boolean micronautPlugin, @Nullable @Nullable String propertyPrefix, @Nullable @Nullable String enabledPropertyName, @NonNull @NonNull String taskJavadoc, @NonNull @NonNull String methodJavadoc, @NonNull @NonNull List<ModelUtils.GeneratedModel> generatedModels) Creates an instance of aMavenTaskConfig
record class.- Parameters:
source
- the value for thesource
record componentparameters
- the value for theparameters
record componentmethodName
- the value for themethodName
record componentpackageName
- the value for thepackageName
record componentnamePrefix
- the value for thenamePrefix
record componentmicronautPlugin
- the value for themicronautPlugin
record componentpropertyPrefix
- the value for thepropertyPrefix
record componentenabledPropertyName
- the value for theenabledPropertyName
record componenttaskJavadoc
- the value for thetaskJavadoc
record componentmethodJavadoc
- the value for themethodJavadoc
record componentgeneratedModels
- the value for thegeneratedModels
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
source
public io.micronaut.inject.ast.ClassElement source()Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
methodName
Returns the value of themethodName
record component.- Returns:
- the value of the
methodName
record component
-
packageName
Returns the value of thepackageName
record component.- Returns:
- the value of the
packageName
record component
-
namePrefix
Returns the value of thenamePrefix
record component.- Returns:
- the value of the
namePrefix
record component
-
micronautPlugin
public boolean micronautPlugin()Returns the value of themicronautPlugin
record component.- Returns:
- the value of the
micronautPlugin
record component
-
propertyPrefix
Returns the value of thepropertyPrefix
record component.- Returns:
- the value of the
propertyPrefix
record component
-
enabledPropertyName
Returns the value of theenabledPropertyName
record component.- Returns:
- the value of the
enabledPropertyName
record component
-
taskJavadoc
Returns the value of thetaskJavadoc
record component.- Returns:
- the value of the
taskJavadoc
record component
-
methodJavadoc
Returns the value of themethodJavadoc
record component.- Returns:
- the value of the
methodJavadoc
record component
-
generatedModels
Returns the value of thegeneratedModels
record component.- Returns:
- the value of the
generatedModels
record component
-