Interface ParameterSpec
- All Known Implementing Classes:
ParameterSpecImpl
@ClassVersion(sourceVersion="$Id: ParameterSpec.java 1085 2024-01-05 16:23:28Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public interface ParameterSpec
The specification for a generated parameter declaration.
- Author:
- Square,Inc.
- Modified by:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: ParameterSpec.java 1085 2024-01-05 16:23:28Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.javacomposer.ParameterSpec"
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe builder for an instance ofParameterSpec -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanhasModifier(Modifier modifier) Checks whether this parameter has the given modifier.name()Returns the name of this parameter.Returns a builder that is initialised with the components of this parameter.toBuilder(TypeName type, CharSequence name, boolean keepJavadoc) Returns a builder for a parameter with the given type and name, and that is initialised with the components of this parameter.toString()type()Returns the type of this parameter.
-
Method Details
-
equals
-
hashCode
int hashCode() -
hasModifier
Checks whether this parameter has the given modifier.- Parameters:
modifier- The modifier.- Returns:
trueif the parameter has the given modifier,falseif not.
-
name
Returns the name of this parameter.- Returns:
- The name.
-
toBuilder
Returns a builder that is initialised with the components of this parameter.- Returns:
- The builder.
-
toBuilder
Returns a builder for a parameter with the given type and name, and that is initialised with the components of this parameter.- Parameters:
type- The type for the new parameter.name- The name for the new parameter.keepJavadoc-trueif an existing Javadoc comment should be preserved,falseif it should be dropped.- Returns:
- The builder.
-
toString
-
type
Returns the type of this parameter.- Returns:
- The type
-
