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

Method toString

output/java_guava/1.4.17/Types.java:185–187  ·  view source on GitHub ↗

Returns human readable string representation of type. For array type Foo[], "com.mypackage.Foo[]" are returned. For any class, theClass.getName() are returned. For all other types, type.toString() are returned.

(Type type)

Source from the content-addressed store, hash-verified

183
184
185 static String toString(Type type) {
186 return (type instanceof Class) ? ((Class<?>) type).getName() : type.toString();
187 }
188
189 @Nullable
190 static Type getComponentType(Type type) {

Callers 3

toStringMethod · 0.95
toStringMethod · 0.95
typeNameMethod · 0.95

Calls 2

toStringMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected