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 -
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.
-
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
-