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

Method capture

output/java_guava/1.4.17/TypeCapture.java:31–35  ·  view source on GitHub ↗

Returns the captured type.

()

Source from the content-addressed store, hash-verified

29
30 /** Returns the captured type. */
31 final Type capture() {
32 Type superclass = getClass().getGenericSuperclass();
33 checkArgument(superclass instanceof ParameterizedType, "%s isn't parameterized", superclass);
34 return ((ParameterizedType) superclass).getActualTypeArguments() [0];
35 }
36}

Callers 3

TypeParameterMethod · 0.45
TypeTokenMethod · 0.45
JavaVersionEnum · 0.45

Calls 3

getGenericSuperclassMethod · 0.45
checkArgumentMethod · 0.45

Tested by

no test coverage detected