Java Utililty Methods Reflection Type

List of utility methods to do Reflection Type

  1. HOME
  2. Java
  3. R
  4. Reflection Type

Description

The list of methods to do Reflection Type are organized into topic(s).

Method

Class getRawType(Type type)
Copied from com.google.inject.internal.MoreTypes.getRawType(Type)
if (type instanceof Class<?>) {
 return (Class<?>) type;
} else if (type instanceof ParameterizedType) {
 ParameterizedType parameterizedType = (ParameterizedType) type;
 Type rawType = parameterizedType.getRawType();
 if (!(rawType instanceof Class)) {
 String message = MessageFormat.format("Expected a Class, but <{0}> is of type {1}", type,
 type.getClass().getName());
...

AltStyle によって変換されたページ (->オリジナル) /