public static class TypeDescription.Generic.LazyProjection.OfMethodParameter extends TypeDescription.Generic.LazyProjection.OfAnnotatedElement
Method
.TypeDescription.Generic.LazyProjection.ForLoadedFieldType, TypeDescription.Generic.LazyProjection.ForLoadedReturnType, TypeDescription.Generic.LazyProjection.ForLoadedSuperClass, TypeDescription.Generic.LazyProjection.OfAnnotatedElement, TypeDescription.Generic.LazyProjection.OfConstructorParameter, TypeDescription.Generic.LazyProjection.OfMethodParameter
TypeDescription.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.SuperClassIterator
NamedElement.WithGenericName, NamedElement.WithRuntimeName
ANNOTATION, OBJECT, UNDEFINED, VOID
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
OfMethodParameter(Method method,
int index,
Class<?>[] erasure)
Creates a lazy projection of a constructor's parameter.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
asErasure()
Returns the erasure of this type.
|
protected TypeDescription.Generic.AnnotationReader |
getAnnotationReader()
Returns the current type's annotation reader.
|
protected TypeDescription.Generic |
resolve()
Resolves the actual generic type.
|
getDeclaredAnnotations
accept, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getSort, getSourceCodeName, getStackSize, getSuperClass, getSymbol, getTypeArguments, getTypeName, getUpperBounds, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toString
asGenericType, asRawType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public OfMethodParameter(Method method, int index, Class<?>[] erasure)
method
- The method of which a parameter type is represented.index
- The parameter's index.erasure
- The erasures of the method's parameter types.protected TypeDescription.Generic resolve()
TypeDescription.Generic.LazyProjection
resolve
in class TypeDescription.Generic.LazyProjection
public TypeDescription asErasure()
TypeDefinition
TypeDescription.Generic.Sort#WILDCARD
)
do not have a well-defined erasure and cause an IllegalStateException
to be thrown.protected TypeDescription.Generic.AnnotationReader getAnnotationReader()
TypeDescription.Generic.LazyProjection.OfAnnotatedElement
getAnnotationReader
in class TypeDescription.Generic.LazyProjection.OfAnnotatedElement
Copyright © 2014–2016. All rights reserved.