T - The type represented by this modelpublic interface PojoGenericTypeModel<T> extends PojoTypeModel<T>
PojoTypeModel offering additional reflection options,
such as the ability to retrieve the type argument for a given generic supertype.the default implementation| Modifier and Type | Method and Description |
|---|---|
Optional<? extends PojoGenericTypeModel<?>> |
getArrayElementType() |
Optional<? extends PojoGenericTypeModel<?>> |
getTypeArgument(Class<?> rawSuperType,
int typeParameterIndex) |
getName, getProperty, getRawTypeOptional<? extends PojoGenericTypeModel<?>> getTypeArgument(Class<?> rawSuperType, int typeParameterIndex)
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.Optional<? extends PojoGenericTypeModel<?>> getArrayElementType()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.