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

Method getRawType

output/java_guava/1.4.17/TypeToken.java:188–194  ·  view source on GitHub ↗

Returns the raw type of T. Formally speaking, if T is returned by java.lang.reflect.Method#getGenericReturnType, the raw type is what's returned by java.lang.reflect.Method#getReturnType of the same method object. Specifically: If T is a Class

()

Source from the content-addressed store, hash-verified

186
187
188 public final Class<? super T> getRawType() {
189 // For wildcard or type variable, the first bound determines the runtime type.
190 Class<?> rawType = getRawTypes().iterator().next();
191 @SuppressWarnings("unchecked") // raw type is |T|
192 Class<? super T> result = (Class<? super T>) rawType;
193 return result;
194 }
195
196 /** Returns the represented type. */
197

Callers 15

getGenericSuperclassMethod · 0.95
getGenericInterfacesMethod · 0.95
getSubtypeMethod · 0.95
constructorMethod · 0.95
boundAsSuperclassMethod · 0.45
boundsAsInterfacesMethod · 0.45
applyMethod · 0.45
visitGenericArrayTypeMethod · 0.45
getRawTypeMethod · 0.45

Calls 3

getRawTypesMethod · 0.95
nextMethod · 0.65
iteratorMethod · 0.65

Tested by

no test coverage detected