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 theAnnotationContainerto use to configure the annotations of this element.static Parameter.BuilderInitialize a builder for a parameter with the specified name.getName()Return the name of the parameter.getType()Return the typ of the parameter.static ParameterCreate a parameter with the specified name andtype.static ParameterCreate a parameter with the specified name andtype.static ParameterCreate 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, waitMethods 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:AnnotatableReturn theAnnotationContainerto use to configure the annotations of this element.- Specified by:
annotationsin interfaceAnnotatable- Returns:
- the annotation container
-
of(String, String)