@@ -60,7 +60,7 @@ public static SequenceType[] singleArgument(final SequenceType arg) {
60
60
private final QName name ;
61
61
private SequenceType [] arguments ;
62
62
private SequenceType returnType ;
63
- private boolean isOverloaded = false ;
63
+ private boolean isVariadic = false ;
64
64
private String description = null ;
65
65
private String deprecated = null ;
66
66
private Map <String , String > metadata = null ;
@@ -70,7 +70,7 @@ public FunctionSignature(final FunctionSignature other) {
70
70
this .arguments = other .arguments != null ? Arrays .copyOf (other .arguments , other .arguments .length ) : null ;
71
71
this .returnType = other .returnType ;
72
72
this .annotations = other .annotations != null ? Arrays .copyOf (other .annotations , other .annotations .length ) : null ;
73
- this .isOverloaded = other .isOverloaded ;
73
+ this .isVariadic = other .isVariadic ;
74
74
this .deprecated = other .deprecated ;
75
75
this .description = other .description ;
76
76
this .metadata = other .metadata != null ? new HashMap <>(other .metadata ) : null ;
@@ -84,8 +84,8 @@ public FunctionSignature(final QName name, final SequenceType[] arguments, final
84
84
this (name , null , arguments , returnType );
85
85
}
86
86
87
- public FunctionSignature (final QName name , final SequenceType [] arguments , final SequenceType returnType , final boolean overloaded ) {
88
- this (name , null , arguments , returnType , overloaded );
87
+ public FunctionSignature (final QName name , final SequenceType [] arguments , final SequenceType returnType , final boolean variadic ) {
88
+ this (name , null , arguments , returnType , variadic );
89
89
}
90
90
91
91
public FunctionSignature (final QName name , final String description , final SequenceType [] arguments , final SequenceType returnType ) {
@@ -101,8 +101,8 @@ public FunctionSignature(final QName name, final String description, final Seque
101
101
// this(name, description, arguments, returnType, false, "Moved to the module: " + deprecatedBy.getName().getNamespaceURI() + ", you should now use '" + deprecatedBy.getName().getPrefix() + ":" + deprecatedBy.getName().getLocalPart() + "' instead!");
102
102
// }
103
103
104
- public FunctionSignature (final QName name , final String description , final SequenceType [] arguments , final SequenceType returnType , final boolean overloaded , final String deprecated ) {
105
- this (name , description , arguments , returnType , overloaded );
104
+ public FunctionSignature (final QName name , final String description , final SequenceType [] arguments , final SequenceType returnType , final boolean variadic , final String deprecated ) {
105
+ this (name , description , arguments , returnType , variadic );
106
106
setDeprecated (deprecated );
107
107
}
108
108
@@ -113,13 +113,13 @@ public FunctionSignature(final QName name, final String description, final Seque
113
113
* @param description documentation string describing the function
114
114
* @param arguments the sequence types of all expected arguments
115
115
* @param returnType the sequence type returned by the function
116
- * @param overloaded set to true if the function may expect additional parameters
116
+ * @param variadic set to true if the function may expect additional parameters
117
117
*/
118
- public FunctionSignature (final QName name , final String description , final SequenceType [] arguments , final SequenceType returnType , final boolean overloaded ) {
118
+ public FunctionSignature (final QName name , final String description , final SequenceType [] arguments , final SequenceType returnType , final boolean variadic ) {
119
119
this .name = name ;
120
120
this .arguments = arguments ;
121
121
this .returnType = returnType ;
122
- this .isOverloaded = overloaded ;
122
+ this .isVariadic = variadic ;
123
123
this .description = description ;
124
124
}
125
125
@@ -132,7 +132,7 @@ public QName getName() {
132
132
}
133
133
134
134
public int getArgumentCount () {
135
- if (isOverloaded ) {
135
+ if (isVariadic ) {
136
136
return -1 ;
137
137
}
138
138
return arguments != null ? arguments .length : 0 ;
@@ -193,8 +193,8 @@ public Map<String, String> getMetadata() {
193
193
return metadata ;
194
194
}
195
195
196
- public boolean isOverloaded () {
197
- return isOverloaded ;
196
+ public boolean isVariadic () {
197
+ return isVariadic ;
198
198
}
199
199
200
200
public boolean isDeprecated () {
@@ -247,7 +247,7 @@ public String toString() {
247
247
buf .append (arguments [i ].toString ());
248
248
}
249
249
250
- if (isOverloaded ) {
250
+ if (isVariadic ) {
251
251
buf .append (", ..." );
252
252
}
253
253
}
@@ -289,7 +289,7 @@ public FunctionSignature rename(final QName newName) {
289
289
final SequenceType [] argumentsCopy = arguments != null ? Arrays .copyOf (arguments , arguments .length ) : null ;
290
290
final FunctionSignature newFunctionSignature = new FunctionSignature (newName , description , argumentsCopy , returnType , deprecated );
291
291
newFunctionSignature .annotations = annotations != null ? Arrays .copyOf (annotations , annotations .length ) : null ;
292
- newFunctionSignature .isOverloaded = isOverloaded ;
292
+ newFunctionSignature .isVariadic = isVariadic ;
293
293
newFunctionSignature .metadata = metadata != null ? new HashMap <>(metadata ) : null ;
294
294
return newFunctionSignature ;
295
295
}
0 commit comments