@@ -91,43 +91,20 @@ object MainAnnotation:
91
91
/** ParameterInfo with a name, the type of the parameter and if it has a default
92
92
*
93
93
* @param name The name of the parameter
94
- * @param typeName The type of the parameter
94
+ * @param typeName The name of the parameter's type
95
95
* @param hasDefault If the parameter has a default argument
96
96
* @param isVarargs If the parameter is a varargs parameter (can only be true for the last parameter)
97
97
* @param documentation The documentation of the parameter (from `@param` documentation in the main method)
98
+ * @param annotations The annotations of the parameter that extend `ParameterAnnotation`
98
99
*/
99
100
final class ParameterInfo (
100
- paramName : String ,
101
- paramTypeName : String ,
102
- paramHasDefault : Boolean ,
103
- paramIsVarargs : Boolean ,
104
- paramDocumentation : String ,
105
- paramAnnotations : Seq [ParameterAnnotation ],
106
- ):
107
-
108
- /** The name of the parameter */
109
- def name : String = paramName
110
-
111
- /** The name of the parameter's type */
112
- def typeName : String = paramTypeName
113
-
114
- /** If the parameter has a default argument */
115
- def hasDefault : Boolean = paramHasDefault
116
-
117
- /** If this is a varargs parameter. Can only be true if it is the last parameter. */
118
- def isVarargs : Boolean = paramIsVarargs
119
-
120
- /** The docstring of the parameter. */
121
- def documentation : String = paramDocumentation
122
-
123
- /** The ParameterAnnotations associated with the parameter. Defaults to Seq.empty. */
124
- def annotations : Seq [ParameterAnnotation ] = paramAnnotations
125
-
126
- override def toString : String = s " $name: $typeName"
127
-
128
- end ParameterInfo
129
-
130
-
101
+ val name : String ,
102
+ val typeName : String ,
103
+ val hasDefault : Boolean ,
104
+ val isVarargs : Boolean ,
105
+ val documentation : String ,
106
+ val annotations : Seq [ParameterAnnotation ]
107
+ )
131
108
132
109
/** Marker trait for annotations that will be included in the ParameterInfo annotations. */
133
110
trait ParameterAnnotation extends StaticAnnotation
0 commit comments