Record Class GradlePluginUtils.GradleTaskConfig
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.visitors.gradle.GradlePluginUtils.GradleTaskConfig
- Record Components:
source
- The source elementparameters
- The parametersmethodName
- The run method namenamePrefix
- The prefix to use for classnamesextensionMethodName
- The method name for gradle extensionmethodJavadoc
- The javadoc for executable methodtaskJavadoc
- The javadoc for the whole taskgeneratedModels
- Additional generated modelscacheable
- Whether the task should be cacheable
- Enclosing class:
- GradlePluginUtils
public static record GradlePluginUtils.GradleTaskConfig(@NonNull io.micronaut.inject.ast.ClassElement source, @NonNull List<PluginUtils.ParameterConfig> parameters, @NonNull String methodName, @NonNull String namePrefix, @NonNull String extensionMethodName, @NonNull String taskJavadoc, @NonNull String methodJavadoc, @NonNull List<ModelUtils.GeneratedModel> generatedModels, boolean cacheable)
extends Record
Configuration for a gradle task.
-
Constructor Summary
ConstructorsConstructorDescriptionGradleTaskConfig
(@NonNull io.micronaut.inject.ast.ClassElement source, @NonNull List<PluginUtils.ParameterConfig> parameters, @NonNull String methodName, @NonNull String namePrefix, @NonNull String extensionMethodName, @NonNull String taskJavadoc, @NonNull String methodJavadoc, @NonNull List<ModelUtils.GeneratedModel> generatedModels, boolean cacheable) Creates an instance of aGradleTaskConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecacheable
record component.final boolean
Indicates whether some other object is "equal to" this one.@NonNull String
Returns the value of theextensionMethodName
record component.@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.@NonNull String
Returns the value of thenamePrefix
record component.@NonNull List<PluginUtils.ParameterConfig>
Returns the value of theparameters
record component.@NonNull 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
-
GradleTaskConfig
public GradleTaskConfig(@NonNull @NonNull io.micronaut.inject.ast.ClassElement source, @NonNull @NonNull List<PluginUtils.ParameterConfig> parameters, @NonNull @NonNull String methodName, @NonNull @NonNull String namePrefix, @NonNull @NonNull String extensionMethodName, @NonNull @NonNull String taskJavadoc, @NonNull @NonNull String methodJavadoc, @NonNull @NonNull List<ModelUtils.GeneratedModel> generatedModels, boolean cacheable) Creates an instance of aGradleTaskConfig
record class.- Parameters:
source
- the value for thesource
record componentparameters
- the value for theparameters
record componentmethodName
- the value for themethodName
record componentnamePrefix
- the value for thenamePrefix
record componentextensionMethodName
- the value for theextensionMethodName
record componenttaskJavadoc
- the value for thetaskJavadoc
record componentmethodJavadoc
- the value for themethodJavadoc
record componentgeneratedModels
- the value for thegeneratedModels
record componentcacheable
- the value for thecacheable
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
@NonNull public @NonNull 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
-
namePrefix
Returns the value of thenamePrefix
record component.- Returns:
- the value of the
namePrefix
record component
-
extensionMethodName
Returns the value of theextensionMethodName
record component.- Returns:
- the value of the
extensionMethodName
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
-
cacheable
public boolean cacheable()Returns the value of thecacheable
record component.- Returns:
- the value of the
cacheable
record component
-