Class Parameter
java.lang.Object
io.spring.initializr.generator.language.Parameter
- All Implemented Interfaces:
Annotatable
A parameter, typically of a method or function.
- Author:
- Andy Wilkinson, Stephane Nicoll
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn theAnnotationContainer
to use to configure the annotations of this element.static Parameter.Builder
Initialize a builder for a parameter with the specified name.getName()
Return the name of the parameter.getType()
Return the typ of the parameter.static Parameter
Create a parameter with the specified name andtype
.static Parameter
Create a parameter with the specified name andtype
.static Parameter
Create a parameter with the specified name and type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.spring.initializr.generator.language.Annotatable
annotate, getAnnotations
-
Constructor Details
-
Parameter
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofof(String, String)
Create a parameter with the specified type and name.- Parameters:
type
- the type of the annotationname
- the name of the annotation
-
-
Method Details
-
of
Create a parameter with the specified name and type.- Parameters:
name
- the name of the parametertype
- the type- Returns:
- a parameter
-
of
Create a parameter with the specified name andtype
.- Parameters:
name
- the name of the parametertype
- the type- Returns:
- a parameter
-
of
Create a parameter with the specified name andtype
.- Parameters:
name
- the name of the parametertype
- the type- Returns:
- a parameter
-
builder
Initialize a builder for a parameter with the specified name.- Parameters:
name
- the name of the parameter- Returns:
- a builder to further configure the parameter
-
getName
Return the name of the parameter.- Returns:
- the name
-
getType
Return the typ of the parameter.- Returns:
- the type
-
annotations
Description copied from interface:Annotatable
Return theAnnotationContainer
to use to configure the annotations of this element.- Specified by:
annotations
in interfaceAnnotatable
- Returns:
- the annotation container
-
of(String, String)