public final class SyntheticPojoGenericTypeModel<T> extends AbstractPojoGenericTypeModel<T>
PojoGenericTypeModel.| Modifier and Type | Method and Description |
|---|---|
static <T> PojoGenericTypeModel<T[]> |
array(PojoRawTypeModel<? super T[]> rawTypeModel,
PojoGenericTypeModel<T> elementType) |
static <T> PojoGenericTypeModel<T> |
genericType(PojoRawTypeModel<? super T> rawTypeModel,
PojoGenericTypeModel<?> firstTypeArgument,
PojoGenericTypeModel<?>... otherTypeArguments) |
Optional<PojoGenericTypeModel<?>> |
getArrayElementType() |
String |
getName() |
Optional<? extends PojoGenericTypeModel<?>> |
getTypeArgument(Class<?> rawSuperType,
int typeParameterIndex) |
static <T> PojoGenericTypeModel<T> |
opaqueType(PojoRawTypeModel<T> rawTypeModel) |
getProperty, getRawType, toStringpublic static <T> PojoGenericTypeModel<T[]> array(PojoRawTypeModel<? super T[]> rawTypeModel, PojoGenericTypeModel<T> elementType)
public static <T> PojoGenericTypeModel<T> genericType(PojoRawTypeModel<? super T> rawTypeModel, PojoGenericTypeModel<?> firstTypeArgument, PojoGenericTypeModel<?>... otherTypeArguments)
public static <T> PojoGenericTypeModel<T> opaqueType(PojoRawTypeModel<T> rawTypeModel)
public String getName()
public Optional<PojoGenericTypeModel<?>> getArrayElementType()
getArrayElementType in interface PojoGenericTypeModel<T>getArrayElementType in class AbstractPojoGenericTypeModel<T>public Optional<? extends PojoGenericTypeModel<?>> getTypeArgument(Class<?> rawSuperType, int typeParameterIndex)
getTypeArgument in interface PojoGenericTypeModel<T>getTypeArgument in class AbstractPojoGenericTypeModel<T>rawSuperType - The supertype to resolve type parameters fortypeParameterIndex - The index of the type parameter to resolverawSuperType
at index typeParameterIndex, or an empty optional if the current type
does not extend rawSuperType.
Implementations may decide to return a model of the raw type argument, or to retain generics information.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.