Record Class PluginUtils.ParameterConfig
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.visitors.PluginUtils.ParameterConfig
- Record Components:
source- The source parameterrequired- Whether it is requireddefaultValue- The default valueinternal- Whether it is internaldirectory- Whether it is a directoryoutput- Whether it is an output and what output typejavadoc- The javadoc for propertytype- The type to use for generated propertypathSensitivity- The path sensitivityisPOJO- Whether the property is a POJOpojoParameters- The nested parameters belonging to POJO
- Enclosing class:
PluginUtils
public static record PluginUtils.ParameterConfig(@NonNull io.micronaut.inject.ast.PropertyElement source, boolean required, @Nullable String defaultValue, boolean internal, boolean directory, @NonNull PluginTaskParameter.OutputType output, @NonNull String javadoc, @NonNull io.micronaut.sourcegen.model.TypeDef type, @NonNull PluginTaskParameter.PathSensitivity pathSensitivity, boolean isPOJO, @NonNull List<PluginUtils.ParameterConfig> pojoParameters)
extends Record
Configuration for a plugin parameter.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterConfig(@NonNull io.micronaut.inject.ast.PropertyElement source, boolean required, @Nullable String defaultValue, boolean internal, boolean directory, @NonNull PluginTaskParameter.OutputType output, @NonNull String javadoc, @NonNull io.micronaut.sourcegen.model.TypeDef type, @NonNull PluginTaskParameter.PathSensitivity pathSensitivity, boolean isPOJO, @NonNull List<PluginUtils.ParameterConfig> pojoParameters) Creates an instance of aParameterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedefaultValuerecord component.booleanReturns the value of thedirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninternal()Returns the value of theinternalrecord component.booleanisPOJO()Returns the value of theisPOJOrecord component.@NonNull Stringjavadoc()Returns the value of thejavadocrecord component.@NonNull PluginTaskParameter.OutputTypeoutput()Returns the value of theoutputrecord component.@NonNull PluginTaskParameter.PathSensitivityReturns the value of thepathSensitivityrecord component.@NonNull List<PluginUtils.ParameterConfig> Returns the value of thepojoParametersrecord component.booleanrequired()Returns the value of therequiredrecord component.@NonNull io.micronaut.inject.ast.PropertyElementsource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.@NonNull io.micronaut.sourcegen.model.TypeDeftype()Returns the value of thetyperecord component.
-
Constructor Details
-
ParameterConfig
public ParameterConfig(@NonNull @NonNull io.micronaut.inject.ast.PropertyElement source, boolean required, @Nullable @Nullable String defaultValue, boolean internal, boolean directory, @NonNull @NonNull PluginTaskParameter.OutputType output, @NonNull @NonNull String javadoc, @NonNull @NonNull io.micronaut.sourcegen.model.TypeDef type, @NonNull @NonNull PluginTaskParameter.PathSensitivity pathSensitivity, boolean isPOJO, @NonNull @NonNull List<PluginUtils.ParameterConfig> pojoParameters) Creates an instance of aParameterConfigrecord class.- Parameters:
source- the value for thesourcerecord componentrequired- the value for therequiredrecord componentdefaultValue- the value for thedefaultValuerecord componentinternal- the value for theinternalrecord componentdirectory- the value for thedirectoryrecord componentoutput- the value for theoutputrecord componentjavadoc- the value for thejavadocrecord componenttype- the value for thetyperecord componentpathSensitivity- the value for thepathSensitivityrecord componentisPOJO- the value for theisPOJOrecord componentpojoParameters- the value for thepojoParametersrecord 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.PropertyElement source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
internal
public boolean internal()Returns the value of theinternalrecord component.- Returns:
- the value of the
internalrecord component
-
directory
public boolean directory()Returns the value of thedirectoryrecord component.- Returns:
- the value of the
directoryrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
javadoc
Returns the value of thejavadocrecord component.- Returns:
- the value of the
javadocrecord component
-
type
@NonNull public @NonNull io.micronaut.sourcegen.model.TypeDef type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
pathSensitivity
Returns the value of thepathSensitivityrecord component.- Returns:
- the value of the
pathSensitivityrecord component
-
isPOJO
public boolean isPOJO()Returns the value of theisPOJOrecord component.- Returns:
- the value of the
isPOJOrecord component
-
pojoParameters
Returns the value of thepojoParametersrecord component.- Returns:
- the value of the
pojoParametersrecord component
-