Record Class GradlePluginUtils.GradleTaskConfig

java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.visitors.gradle.GradlePluginUtils.GradleTaskConfig
Record Components:
source - The source element
parameters - The parameters
methodName - The run method name
namePrefix - The prefix to use for classnames
extensionMethodName - The method name for gradle extension
methodJavadoc - The javadoc for executable method
taskJavadoc - The javadoc for the whole task
generatedModels - Additional generated models
cacheable - 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 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 a GradleTaskConfig record class.
      Parameters:
      source - the value for the source record component
      parameters - the value for the parameters record component
      methodName - the value for the methodName record component
      namePrefix - the value for the namePrefix record component
      extensionMethodName - the value for the extensionMethodName record component
      taskJavadoc - the value for the taskJavadoc record component
      methodJavadoc - the value for the methodJavadoc record component
      generatedModels - the value for the generatedModels record component
      cacheable - the value for the cacheable record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • source

      @NonNull public @NonNull io.micronaut.inject.ast.ClassElement source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • parameters

      @NonNull public @NonNull List<PluginUtils.ParameterConfig> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • methodName

      @NonNull public @NonNull String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • namePrefix

      @NonNull public @NonNull String namePrefix()
      Returns the value of the namePrefix record component.
      Returns:
      the value of the namePrefix record component
    • extensionMethodName

      @NonNull public @NonNull String extensionMethodName()
      Returns the value of the extensionMethodName record component.
      Returns:
      the value of the extensionMethodName record component
    • taskJavadoc

      @NonNull public @NonNull String taskJavadoc()
      Returns the value of the taskJavadoc record component.
      Returns:
      the value of the taskJavadoc record component
    • methodJavadoc

      @NonNull public @NonNull String methodJavadoc()
      Returns the value of the methodJavadoc record component.
      Returns:
      the value of the methodJavadoc record component
    • generatedModels

      @NonNull public @NonNull List<ModelUtils.GeneratedModel> generatedModels()
      Returns the value of the generatedModels record component.
      Returns:
      the value of the generatedModels record component
    • cacheable

      public boolean cacheable()
      Returns the value of the cacheable record component.
      Returns:
      the value of the cacheable record component