public static class GenericTypeDescription.LazyProjection.OfLoadedSuperType extends GenericTypeDescription.LazyProjection
GenericTypeDescription.LazyProjection.OfLoadedFieldType, GenericTypeDescription.LazyProjection.OfLoadedParameter, GenericTypeDescription.LazyProjection.OfLoadedReturnType, GenericTypeDescription.LazyProjection.OfLoadedSuperType
GenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
EMPTY_NAME
Constructor and Description |
---|
OfLoadedSuperType(Class<?> type)
Creates a new lazy projection of a type's super class.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
asErasure()
Returns the erasure of this type.
|
protected GenericTypeDescription |
resolve()
Resolves the actual generic type.
|
accept, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getParameters, getSort, getSourceCodeName, getStackSize, getSuperType, getSymbol, getTypeName, getUpperBounds, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public OfLoadedSuperType(Class<?> type)
type
- The type of which the super class is represented.protected GenericTypeDescription resolve()
GenericTypeDescription.LazyProjection
resolve
in class GenericTypeDescription.LazyProjection
public TypeDescription asErasure()
GenericTypeDescription
GenericTypeDescription.Sort.WILDCARD
)
do not have a well-defined erasure and cause an IllegalStateException
to be thrown.Copyright © 2014–2015. All rights reserved.