Record Class GradlePluginUtils.GradlePluginConfig
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.visitors.gradle.GradlePluginUtils.GradlePluginConfig
- Record Components:
tasks
- The task configurationpackageName
- The package namenamePrefix
- The type name prefixtaskGroup
- The gradle group to usemicronautPlugin
- Whether to extend micronaut plugindependency
- The dependencytypes
- The types to generate
- Enclosing class:
- GradlePluginUtils
public static record GradlePluginUtils.GradlePluginConfig(List<GradlePluginUtils.GradleTaskConfig> tasks, String packageName, String namePrefix, String taskGroup, boolean micronautPlugin, String dependency, List<GenerateGradlePlugin.Type> types)
extends Record
Configuration for a gradle plugin.
-
Constructor Summary
ConstructorsConstructorDescriptionGradlePluginConfig
(List<GradlePluginUtils.GradleTaskConfig> tasks, String packageName, String namePrefix, String taskGroup, boolean micronautPlugin, String dependency, List<GenerateGradlePlugin.Type> types) Creates an instance of aGradlePluginConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependency
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themicronautPlugin
record component.Returns the value of thenamePrefix
record component.Returns the value of thepackageName
record component.Returns the value of thetaskGroup
record component.tasks()
Returns the value of thetasks
record component.final String
toString()
Returns a string representation of this record class.types()
Returns the value of thetypes
record component.
-
Constructor Details
-
GradlePluginConfig
public GradlePluginConfig(List<GradlePluginUtils.GradleTaskConfig> tasks, String packageName, String namePrefix, String taskGroup, boolean micronautPlugin, String dependency, List<GenerateGradlePlugin.Type> types) Creates an instance of aGradlePluginConfig
record class.- Parameters:
tasks
- the value for thetasks
record componentpackageName
- the value for thepackageName
record componentnamePrefix
- the value for thenamePrefix
record componenttaskGroup
- the value for thetaskGroup
record componentmicronautPlugin
- the value for themicronautPlugin
record componentdependency
- the value for thedependency
record componenttypes
- the value for thetypes
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 '=='. -
tasks
Returns the value of thetasks
record component.- Returns:
- the value of the
tasks
record component
-
packageName
Returns the value of thepackageName
record component.- Returns:
- the value of the
packageName
record component
-
namePrefix
Returns the value of thenamePrefix
record component.- Returns:
- the value of the
namePrefix
record component
-
taskGroup
Returns the value of thetaskGroup
record component.- Returns:
- the value of the
taskGroup
record component
-
micronautPlugin
public boolean micronautPlugin()Returns the value of themicronautPlugin
record component.- Returns:
- the value of the
micronautPlugin
record component
-
dependency
Returns the value of thedependency
record component.- Returns:
- the value of the
dependency
record component
-
types
Returns the value of thetypes
record component.- Returns:
- the value of the
types
record component
-