Record Class MavenPluginUtils.MavenTaskConfig

java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.visitors.maven.MavenPluginUtils.MavenTaskConfig
Record Components:
source - The configuration source
parameters - The parameters
methodName - The run method name
packageName - The package name
namePrefix - The type name prefix
micronautPlugin - Whether to extend micronaut plugin
propertyPrefix - The prefix for maven properties
enabledPropertyName - The name of the enabled property
taskJavadoc - The javadoc for the whole task
methodJavadoc - The javadoc for the executable method
generatedModels - 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 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 a MavenTaskConfig 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
      packageName - the value for the packageName record component
      namePrefix - the value for the namePrefix record component
      micronautPlugin - the value for the micronautPlugin record component
      propertyPrefix - the value for the propertyPrefix record component
      enabledPropertyName - the value for the enabledPropertyName 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
  • 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

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

      public 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
    • packageName

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

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

      public boolean micronautPlugin()
      Returns the value of the micronautPlugin record component.
      Returns:
      the value of the micronautPlugin record component
    • propertyPrefix

      @Nullable public @Nullable String propertyPrefix()
      Returns the value of the propertyPrefix record component.
      Returns:
      the value of the propertyPrefix record component
    • enabledPropertyName

      @Nullable public @Nullable String enabledPropertyName()
      Returns the value of the enabledPropertyName record component.
      Returns:
      the value of the enabledPropertyName 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