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 typeglobalProperty
- A global propertyjavadoc
- The javadoc for propertytype
- The type to use for generated propertypathSensitivity
- The path sensitivity
- 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, @Nullable String globalProperty, @NonNull String javadoc, @NonNull io.micronaut.sourcegen.model.TypeDef type, @NonNull PluginTaskParameter.PathSensitivity pathSensitivity)
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, @Nullable String globalProperty, @NonNull String javadoc, @NonNull io.micronaut.sourcegen.model.TypeDef type, @NonNull PluginTaskParameter.PathSensitivity pathSensitivity) Creates an instance of aParameterConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of thedefaultValue
record component.boolean
Returns the value of thedirectory
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable String
Returns the value of theglobalProperty
record component.final int
hashCode()
Returns a hash code value for this object.boolean
internal()
Returns the value of theinternal
record component.@NonNull String
javadoc()
Returns the value of thejavadoc
record component.@NonNull PluginTaskParameter.OutputType
output()
Returns the value of theoutput
record component.@NonNull PluginTaskParameter.PathSensitivity
Returns the value of thepathSensitivity
record component.boolean
required()
Returns the value of therequired
record component.@NonNull io.micronaut.inject.ast.PropertyElement
source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.@NonNull io.micronaut.sourcegen.model.TypeDef
type()
Returns the value of thetype
record 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, @Nullable @Nullable String globalProperty, @NonNull @NonNull String javadoc, @NonNull @NonNull io.micronaut.sourcegen.model.TypeDef type, @NonNull @NonNull PluginTaskParameter.PathSensitivity pathSensitivity) Creates an instance of aParameterConfig
record class.- Parameters:
source
- the value for thesource
record componentrequired
- the value for therequired
record componentdefaultValue
- the value for thedefaultValue
record componentinternal
- the value for theinternal
record componentdirectory
- the value for thedirectory
record componentoutput
- the value for theoutput
record componentglobalProperty
- the value for theglobalProperty
record componentjavadoc
- the value for thejavadoc
record componenttype
- the value for thetype
record componentpathSensitivity
- the value for thepathSensitivity
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 '=='. -
source
@NonNull public @NonNull io.micronaut.inject.ast.PropertyElement source()Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
required
public boolean required()Returns the value of therequired
record component.- Returns:
- the value of the
required
record component
-
defaultValue
Returns the value of thedefaultValue
record component.- Returns:
- the value of the
defaultValue
record component
-
internal
public boolean internal()Returns the value of theinternal
record component.- Returns:
- the value of the
internal
record component
-
directory
public boolean directory()Returns the value of thedirectory
record component.- Returns:
- the value of the
directory
record component
-
output
Returns the value of theoutput
record component.- Returns:
- the value of the
output
record component
-
globalProperty
Returns the value of theglobalProperty
record component.- Returns:
- the value of the
globalProperty
record component
-
javadoc
Returns the value of thejavadoc
record component.- Returns:
- the value of the
javadoc
record component
-
type
@NonNull public @NonNull io.micronaut.sourcegen.model.TypeDef type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
pathSensitivity
Returns the value of thepathSensitivity
record component.- Returns:
- the value of the
pathSensitivity
record component
-