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 aGradlePluginConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themicronautPluginrecord component.Returns the value of thenamePrefixrecord component.Returns the value of thepackageNamerecord component.Returns the value of thetaskGrouprecord component.tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord 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 aGradlePluginConfigrecord class.- Parameters:
tasks- the value for thetasksrecord componentpackageName- the value for thepackageNamerecord componentnamePrefix- the value for thenamePrefixrecord componenttaskGroup- the value for thetaskGrouprecord componentmicronautPlugin- the value for themicronautPluginrecord componentdependency- the value for thedependencyrecord componenttypes- the value for thetypesrecord 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 thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
namePrefix
Returns the value of thenamePrefixrecord component.- Returns:
- the value of the
namePrefixrecord component
-
taskGroup
Returns the value of thetaskGrouprecord component.- Returns:
- the value of the
taskGrouprecord component
-
micronautPlugin
public boolean micronautPlugin()Returns the value of themicronautPluginrecord component.- Returns:
- the value of the
micronautPluginrecord component
-
dependency
Returns the value of thedependencyrecord component.- Returns:
- the value of the
dependencyrecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-