Returns all declared parameters of this Invokable. Note that if this is a constructor of a non-static inner class, unlike Constructor#getParameterTypes, the hidden this parameter of the enclosing class is excluded from the returned parameters.
()
| 124 | |
| 125 | |
| 126 | public final ImmutableList<Parameter> getParameters() { |
| 127 | Type[] parameterTypes = getGenericParameterTypes(); |
| 128 | Annotation[][] annotations = getParameterAnnotations(); |
| 129 | ImmutableList.Builder<Parameter> builder = ImmutableList.builder(); |
| 130 | for (int i = 0; i < parameterTypes.length; i++) { |
| 131 | builder.add(new Parameter(this, i, TypeToken.of(parameterTypes[i]), annotations[i])); |
| 132 | } |
| 133 | return builder.build(); |
| 134 | } |
| 135 | |
| 136 | /** Returns all declared exception types of this {@code Invokable}. */ |
| 137 |
nothing calls this directly
no test coverage detected