MCPcopy Create free account
hub / github.com/antlr/codebuff / getParameters

Method getParameters

output/java_guava/1.4.16/Invokable.java:126–134  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

builderMethod · 0.95
ofMethod · 0.95
addMethod · 0.65
buildMethod · 0.45

Tested by

no test coverage detected