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 extensiontaskJavadoc- The javadoc for the whole taskmethodJavadoc- The javadoc for executable methodcacheable- Whether the task should be cacheablemodelBuilder- The model builder
- 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, boolean cacheable, ModelBuilder modelBuilder)
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, boolean cacheable, ModelBuilder modelBuilder) Creates an instance of aGradleTaskConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecacheablerecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull StringReturns the value of theextensionMethodNamerecord 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.Returns the value of themodelBuilderrecord component.@NonNull StringReturns the value of thenamePrefixrecord component.@NonNull List<PluginUtils.ParameterConfig> Returns the value of theparametersrecord component.@NonNull 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
-
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, boolean cacheable, ModelBuilder modelBuilder) Creates an instance of aGradleTaskConfigrecord class.- Parameters:
source- the value for thesourcerecord componentparameters- the value for theparametersrecord componentmethodName- the value for themethodNamerecord componentnamePrefix- the value for thenamePrefixrecord componentextensionMethodName- the value for theextensionMethodNamerecord componenttaskJavadoc- the value for thetaskJavadocrecord componentmethodJavadoc- the value for themethodJavadocrecord componentcacheable- the value for thecacheablerecord 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
@NonNull public @NonNull 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
-
namePrefix
Returns the value of thenamePrefixrecord component.- Returns:
- the value of the
namePrefixrecord component
-
extensionMethodName
Returns the value of theextensionMethodNamerecord component.- Returns:
- the value of the
extensionMethodNamerecord 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
-
cacheable
public boolean cacheable()Returns the value of thecacheablerecord component.- Returns:
- the value of the
cacheablerecord component
-
modelBuilder
Returns the value of themodelBuilderrecord component.- Returns:
- the value of the
modelBuilderrecord component
-