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

Method returning

output/java_guava/1.4.17/Invokable.java:158–160  ·  view source on GitHub ↗

Explicitly specifies the return type of this Invokable. For example: Method factoryMethod = Person.class.getMethod("create"); Invokable<?, Person> factory = Invokable.of(getNameMethod).returning(Person.class);

(Class<R1> returnType)

Source from the content-addressed store, hash-verified

156
157
158 public final <R1 extends R> Invokable<T, R1> returning(Class<R1> returnType) {
159 return returning(TypeToken.of(returnType));
160 }
161
162 /** Explicitly specifies the return type of this {@code Invokable}. */
163

Callers

nothing calls this directly

Calls 3

ofMethod · 0.95
getReturnTypeMethod · 0.95
isSupertypeOfMethod · 0.45

Tested by

no test coverage detected