Package | Description |
---|---|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeDescription.Generic.AnnotationReader.Delegator
A delegating annotation reader that delegates all invocations to an annotation reader that wraps the previous one.
|
protected static class |
TypeDescription.Generic.AnnotationReader.Delegator.Chained
A chained delegator that bases its result on an underlying annotation reader.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedExceptionType
A delegating annotation reader for an annotated exception variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedFieldType
A delegating annotation reader for an annotated field variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedInterfaceType
A delegating annotation reader for an annotated interface type.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedParameterizedType
A delegating annotation reader for an annotated parameter variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedReturnType
A delegating annotation reader for an annotated return variable.
|
protected class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedSuperClass
A delegating annotation reader for an annotated super type.
|
protected static class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType
A delegating annotation reader for an annotated type variable.
|
protected static class |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.Resolved
A delegator for an existing
java.lang.reflect.AnnotatedElement . |
static class |
TypeDescription.Generic.AnnotationReader.ForComponentType
A chained annotation reader for reading a component type.
|
static class |
TypeDescription.Generic.AnnotationReader.ForOwnerType
A chained annotation reader for reading an owner type.
|
static class |
TypeDescription.Generic.AnnotationReader.ForTypeArgument
A chained annotation reader for reading a parameterized type's type argument.
|
static class |
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType
A chained annotation reader for reading a type variable's type argument.
|
protected static class |
TypeDescription.Generic.AnnotationReader.ForTypeVariableBoundType.OfFormalTypeVariable
A chained annotation reader for reading a formal type variable's type argument.
|
static class |
TypeDescription.Generic.AnnotationReader.ForWildcardLowerBoundType
A chained annotation reader for reading a wildcard type's lower bound type.
|
static class |
TypeDescription.Generic.AnnotationReader.ForWildcardUpperBoundType
A chained annotation reader for reading a wildcard type's upper bound type.
|
static class |
TypeDescription.Generic.AnnotationReader.NoOp
A non-operational annotation reader.
|
Modifier and Type | Field and Description |
---|---|
protected TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.Chained.annotationReader
The underlying annotation reader.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfNonGenericType.ForLoadedType.annotationReader
The annotation reader to query for the non-generic type's annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfGenericArray.ForLoadedType.annotationReader
The annotation reader to query for the generic array type's annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfWildcardType.ForLoadedType.annotationReader
The annotation reader to query for the wildcard type's annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfWildcardType.ForLoadedType.WildcardUpperBoundTypeList.annotationReader
The annotation reader to query for type annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfWildcardType.ForLoadedType.WildcardLowerBoundTypeList.annotationReader
The annotation reader to query for type annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfParameterizedType.ForLoadedType.annotationReader
The annotation reader to query for the parameterized type's annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfParameterizedType.ForLoadedType.ParameterArgumentTypeList.annotationReader
The annotation reader to query for type annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfTypeVariable.ForLoadedType.annotationReader
The annotation reader to query for the variable's annotations.
|
private TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.OfTypeVariable.ForLoadedType.TypeVariableBoundList.annotationReader
The annotation reader to query for the type bounds.
|
Modifier and Type | Method and Description |
---|---|
protected TypeDescription.Generic.AnnotationReader |
TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection.getAnnotationReader() |
protected TypeDescription.Generic.AnnotationReader |
TypeList.Generic.OfConstructorExceptionTypes.TypeProjection.getAnnotationReader() |
protected TypeDescription.Generic.AnnotationReader |
TypeList.Generic.OfMethodExceptionTypes.TypeProjection.getAnnotationReader() |
protected abstract TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement.getAnnotationReader()
Returns the current type's annotation reader.
|
protected abstract TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.WithEagerNavigation.OfAnnotatedElement.getAnnotationReader()
Returns the current type's annotation reader.
|
protected TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.ForLoadedSuperClass.getAnnotationReader() |
protected TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.ForLoadedFieldType.getAnnotationReader() |
protected TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.ForLoadedReturnType.getAnnotationReader() |
protected TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.OfConstructorParameter.getAnnotationReader() |
protected TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.LazyProjection.OfMethodParameter.getAnnotationReader() |
private static TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ForOwnerType.of(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a chained annotation reader for reading an owner type if it is accessible.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofComponentType()
Returns a reader for type annotations of an array's component type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofComponentType()
Returns a reader for type annotations of an array's component type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofComponentType()
Returns a reader for type annotations of an array's component type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofOuterClass()
Returns a reader for type annotations of an inner class type's outer type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofOwnerType()
Returns a reader for type annotations of a parameterized type's owner type.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofTypeArgument(int index)
Returns a reader for type annotations of a parameterized type's type argument.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.AnnotatedTypeVariableType.ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofTypeVariableBoundType(int index)
Returns a reader for type annotations of a type variable's bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofWildcardLowerBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard lower bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.NoOp.ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Delegator.ofWildcardUpperBoundType(int index)
Returns a reader for type annotations of an represented element's wildcard upper bound.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveExceptionType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's exception type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveExceptionType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's exception type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveExceptionType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's exception type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveFieldType(java.lang.reflect.Field field)
Resolves a loaded field's type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveFieldType(java.lang.reflect.Field field)
Resolves a loaded field's type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveFieldType(java.lang.reflect.Field field)
Resolves a loaded field's type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveInterfaceType(java.lang.Class<?> type,
int index)
Resolves a loaded type's interface type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveInterfaceType(java.lang.Class<?> type,
int index)
Resolves a loaded type's interface type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveInterfaceType(java.lang.Class<?> type,
int index)
Resolves a loaded type's interface type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveParameterType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's type argument type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveParameterType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's type argument type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveParameterType(java.lang.reflect.AccessibleObject executable,
int index)
Resolves a loaded executable's type argument type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveReturnType(java.lang.reflect.Method method)
Resolves a loaded method's return type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveReturnType(java.lang.reflect.Method method)
Resolves a loaded method's return type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveReturnType(java.lang.reflect.Method method)
Resolves a loaded method's return type's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveSuperClassType(java.lang.Class<?> type)
Resolves a loaded type's super class's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveSuperClassType(java.lang.Class<?> type)
Resolves a loaded type's super class's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveSuperClassType(java.lang.Class<?> type)
Resolves a loaded type's super class's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.resolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)
Resolves a formal type variable's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForLegacyVm.resolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)
Resolves a formal type variable's type annotations.
|
TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.Dispatcher.ForJava8CapableVm.resolveTypeVariable(java.lang.reflect.TypeVariable<?> typeVariable)
Resolves a formal type variable's type annotations.
|
Modifier and Type | Method and Description |
---|---|
protected static TypeDescription.Generic |
TypeDefinition.Sort.describe(java.lang.reflect.Type type,
TypeDescription.Generic.AnnotationReader annotationReader)
Describes the generic type while using the supplied annotation reader for resolving type annotations if this
language feature is available on the current JVM.
|
private static TypeDescription.Generic.AnnotationReader |
TypeDescription.Generic.AnnotationReader.ForOwnerType.of(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a chained annotation reader for reading an owner type if it is accessible.
|
Constructor and Description |
---|
Chained(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a new chained annotation reader.
|
ForComponentType(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a chained annotation reader for reading a component type.
|
ForLoadedType(java.lang.Class<?> type,
TypeDescription.Generic.AnnotationReader annotationReader)
/**
Creates a new description of a generic type of a loaded type.
|
ForLoadedType(java.lang.reflect.GenericArrayType genericArrayType,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a type description of the given generic array type.
|
ForLoadedType(java.lang.reflect.ParameterizedType parameterizedType,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a description of the loaded parameterized type.
|
ForLoadedType(java.lang.reflect.TypeVariable<?> typeVariable,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a description of a loaded type variable with an annotation.
|
ForLoadedType(java.lang.reflect.WildcardType wildcardType,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a description of a loaded wildcard.
|
ForOwnerType(TypeDescription.Generic.AnnotationReader annotationReader)
Creates a chained annotation reader for reading an owner type if it is accessible.
|
ForTypeArgument(TypeDescription.Generic.AnnotationReader annotationReader,
int index)
Creates a chained annotation reader for reading a component type.
|
ForTypeVariableBoundType(TypeDescription.Generic.AnnotationReader annotationReader,
int index)
Creates a chained annotation reader for reading a type variable's bound type.
|
ForWildcardLowerBoundType(TypeDescription.Generic.AnnotationReader annotationReader,
int index)
Creates a chained annotation reader for reading a lower-bound wildcard's bound type.
|
ForWildcardUpperBoundType(TypeDescription.Generic.AnnotationReader annotationReader,
int index)
Creates a chained annotation reader for reading a upper-bound wildcard's bound type.
|
ParameterArgumentTypeList(java.lang.reflect.Type[] argumentType,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a list representing a parameterized type's type arguments.
|
TypeVariableBoundList(java.lang.reflect.Type[] bound,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a new list for a
TypeVariable 's bound. |
WildcardLowerBoundTypeList(java.lang.reflect.Type[] lowerBound,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a type list for a wildcard type's lower bounds.
|
WildcardUpperBoundTypeList(java.lang.reflect.Type[] upperBound,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a type list for a wildcard type's upper bounds.
|