protected static class GenericTypeList.ForDetachedTypes.OfTypeVariable.LazyTypeVariable extends GenericTypeDescription.ForTypeVariable
GenericTypeDescription.ForTypeVariable.InDetachedForm, GenericTypeDescription.ForTypeVariable.OfLoadedTypeGenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>NamedElement.WithGenericName, NamedElement.WithRuntimeNameEMPTY_NAME, NO_NAME| Modifier | Constructor and Description |
|---|---|
protected |
LazyTypeVariable(String symbol,
TypeVariableSource typeVariableSource,
List<? extends GenericTypeDescription> detachedBounds,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a new lazy type variable.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSymbol()
Returns the symbol of this type variable.
|
GenericTypeList |
getUpperBounds()
Returns the upper bounds of this type.
|
TypeVariableSource |
getVariableSource()
Returns the source of this type variable.
|
static GenericTypeDescription |
of(GenericTypeDescription detachedVariable,
TypeVariableSource typeVariableSource,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a lazy type variable representation.
|
accept, asErasure, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getParameters, getSort, getSourceCodeName, getStackSize, getSuperType, getTypeName, hashCode, isArray, isPrimitive, iterator, represents, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected LazyTypeVariable(String symbol, TypeVariableSource typeVariableSource, List<? extends GenericTypeDescription> detachedBounds, GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
symbol - The represented symbol of the represented type variable.typeVariableSource - The type variable source of this type variable.detachedBounds - The detached bounds of this type variable.visitor - The visitor to use for attaching the represented type variable bounds.public static GenericTypeDescription of(GenericTypeDescription detachedVariable, TypeVariableSource typeVariableSource, GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
detachedVariable - The detached variable to represent.typeVariableSource - The type variable source of the type variable.visitor - The visitor to be used for attaching the type variable's bounds.public GenericTypeList getUpperBounds()
GenericTypeDescription
Returns the upper bounds of this type. Any type with a well-defined upper bound is bound by at least one type. If no such
type is defined, the bound is implicitly Object.
Only non-symbolic type variables (GenericTypeDescription.Sort.VARIABLE,
GenericTypeDescription.Sort.VARIABLE_DETACHED) and wildcard types
(GenericTypeDescription.Sort.WILDCARD) have well-defined upper bounds. For other
types, an IllegalStateException is thrown.
public TypeVariableSource getVariableSource()
GenericTypeDescriptionGenericTypeDescription.Sort.VARIABLE. For other types, this method
throws an IllegalStateException.public String getSymbol()
GenericTypeDescriptionGenericTypeDescription.Sort.VARIABLE,
GenericTypeDescription.Sort.VARIABLE_DETACHED,
GenericTypeDescription.Sort.VARIABLE_SYMBOLIC). For other types, this method
throws an IllegalStateException.Copyright © 2014–2015. All rights reserved.