protected static class TypeDescription.Generic.Visitor.AnnotationStripper.NonAnnotatedTypeVariable extends TypeDescription.Generic.OfTypeVariable
TypeDescription.Generic.OfTypeVariable.ForLoadedType, TypeDescription.Generic.OfTypeVariable.Symbolic, TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlayTypeDescription.Generic.AbstractBase, TypeDescription.Generic.AnnotationReader, TypeDescription.Generic.Builder, TypeDescription.Generic.LazyProjection, TypeDescription.Generic.OfGenericArray, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfWildcardType, TypeDescription.Generic.Visitor<T>TypeDefinition.Sort, TypeDefinition.SuperClassIteratorNamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationANNOTATION, OBJECT, UNDEFINED, VOIDEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
NonAnnotatedTypeVariable(TypeDescription.Generic typeVariable)
Creates a new non-annotated type variable.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
String |
getSymbol()
Returns the symbol of this type variable.
|
TypeVariableSource |
getTypeVariableSource()
Returns the source of this type variable.
|
TypeList.Generic |
getUpperBounds()
Returns the upper bounds of this type.
|
accept, asErasure, equals, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getSort, getStackSize, getSuperClass, getTypeArguments, getTypeName, hashCode, isArray, isPrimitive, iterator, represents, toStringasGenericType, asRawType, getModifiersisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAnnotation, isInterfaceisAbstractisEnumisDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticisFinal, isSyntheticforEach, spliteratorprotected NonAnnotatedTypeVariable(TypeDescription.Generic typeVariable)
typeVariable - The represented type variable.public TypeList.Generic getUpperBounds()
TypeDescription.Generic
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 (TypeDefinition.Sort.VARIABLE, and wildcard types
(TypeDefinition.Sort.WILDCARD) have well-defined upper bounds. For other
types, an IllegalStateException is thrown.
public TypeVariableSource getTypeVariableSource()
TypeDescription.GenericSort#VARIABLE. For other types, this method
throws an IllegalStateException.public String getSymbol()
TypeDescription.GenericSort#VARIABLE, Sort#VARIABLE_SYMBOLIC). For other types, this method
throws an IllegalStateException.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementCopyright © 2014–2016. All rights reserved.