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 pluginparameterPrefix- The prefix for maven propertiesglobalParameters- The property to define as maven parametersenabledPropertyName- The name of the enabled propertytaskJavadoc- The javadoc for the whole taskmethodJavadoc- The javadoc for the executable methodmodelBuilder- The model builder
- 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 parameterPrefix, @NonNull Map<String,String> globalParameters, @Nullable String enabledPropertyName, @NonNull String taskJavadoc, @NonNull String methodJavadoc, @NonNull MavenModelBuilder modelBuilder)
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 parameterPrefix, @NonNull Map<String, String> globalParameters, @Nullable String enabledPropertyName, @NonNull String taskJavadoc, @NonNull String methodJavadoc, @NonNull MavenModelBuilder modelBuilder) Creates an instance of aMavenTaskConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theenabledPropertyNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalParametersrecord component.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of themethodJavadocrecord component.@NonNull StringReturns the value of themethodNamerecord component.booleanReturns the value of themicronautPluginrecord component.@NonNull MavenModelBuilderReturns the value of themodelBuilderrecord component.@NonNull StringReturns the value of thenamePrefixrecord component.@NonNull StringReturns the value of thepackageNamerecord component.@Nullable StringReturns the value of theparameterPrefixrecord component.Returns the value of theparametersrecord component.io.micronaut.inject.ast.ClassElementsource()Returns the value of thesourcerecord component.@NonNull StringReturns the value of thetaskJavadocrecord component.final StringtoString()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 parameterPrefix, @NonNull @NonNull Map<String, String> globalParameters, @Nullable @Nullable String enabledPropertyName, @NonNull @NonNull String taskJavadoc, @NonNull @NonNull String methodJavadoc, @NonNull @NonNull MavenModelBuilder modelBuilder) Creates an instance of aMavenTaskConfigrecord class.- Parameters:
source- the value for thesourcerecord componentparameters- the value for theparametersrecord componentmethodName- the value for themethodNamerecord componentpackageName- the value for thepackageNamerecord componentnamePrefix- the value for thenamePrefixrecord componentmicronautPlugin- the value for themicronautPluginrecord componentparameterPrefix- the value for theparameterPrefixrecord componentglobalParameters- the value for theglobalParametersrecord componentenabledPropertyName- the value for theenabledPropertyNamerecord componenttaskJavadoc- the value for thetaskJavadocrecord componentmethodJavadoc- the value for themethodJavadocrecord componentmodelBuilder- the value for themodelBuilderrecord 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 thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
namePrefix
Returns the value of thenamePrefixrecord component.- Returns:
- the value of the
namePrefixrecord component
-
micronautPlugin
public boolean micronautPlugin()Returns the value of themicronautPluginrecord component.- Returns:
- the value of the
micronautPluginrecord component
-
parameterPrefix
Returns the value of theparameterPrefixrecord component.- Returns:
- the value of the
parameterPrefixrecord component
-
globalParameters
Returns the value of theglobalParametersrecord component.- Returns:
- the value of the
globalParametersrecord component
-
enabledPropertyName
Returns the value of theenabledPropertyNamerecord component.- Returns:
- the value of the
enabledPropertyNamerecord component
-
taskJavadoc
Returns the value of thetaskJavadocrecord component.- Returns:
- the value of the
taskJavadocrecord component
-
methodJavadoc
Returns the value of themethodJavadocrecord component.- Returns:
- the value of the
methodJavadocrecord component
-
modelBuilder
Returns the value of themodelBuilderrecord component.- Returns:
- the value of the
modelBuilderrecord component
-