Package net.bytebuddy.description.type
Class TypeDescription.Generic.Builder.OfGenericArrayType
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.Builder
-
- net.bytebuddy.description.type.TypeDescription.Generic.Builder.OfGenericArrayType
-
- Enclosing class:
- TypeDescription.Generic.Builder
@Enhance protected static class TypeDescription.Generic.Builder.OfGenericArrayType extends TypeDescription.Generic.Builder
A generic type builder building a generic array type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.Generic.Builder
TypeDescription.Generic.Builder.OfGenericArrayType, TypeDescription.Generic.Builder.OfNonGenericType, TypeDescription.Generic.Builder.OfParameterizedType, TypeDescription.Generic.Builder.OfTypeVariable
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription.Generic
componentType
The generic component type.-
Fields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.Builder
annotations
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OfGenericArrayType(TypeDescription.Generic componentType)
Creates a type builder for building a generic array type.protected
OfGenericArrayType(TypeDescription.Generic componentType, java.util.List<? extends AnnotationDescription> annotations)
Creates a type builder for building a generic array type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeDescription.Generic.Builder
doAnnotate(java.util.List<? extends AnnotationDescription> annotations)
Creates a new builder for the current type and the applied type annotations.protected TypeDescription.Generic
doBuild()
Builds the generic type.-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.Builder
annotate, annotate, annotate, annotate, asArray, asArray, asWildcardLowerBound, asWildcardLowerBound, asWildcardLowerBound, asWildcardLowerBound, asWildcardLowerBound, asWildcardUpperBound, asWildcardUpperBound, asWildcardUpperBound, asWildcardUpperBound, asWildcardUpperBound, build, build, build, build, build, parameterizedType, parameterizedType, parameterizedType, parameterizedType, parameterizedType, parameterizedType, rawType, rawType, rawType, rawType, typeVariable, unboundWildcard, unboundWildcard, unboundWildcard, unboundWildcard, unboundWildcard
-
-
-
-
Field Detail
-
componentType
private final TypeDescription.Generic componentType
The generic component type.
-
-
Constructor Detail
-
OfGenericArrayType
protected OfGenericArrayType(TypeDescription.Generic componentType)
Creates a type builder for building a generic array type.- Parameters:
componentType
- The generic component type.
-
OfGenericArrayType
protected OfGenericArrayType(TypeDescription.Generic componentType, java.util.List<? extends AnnotationDescription> annotations)
Creates a type builder for building a generic array type.- Parameters:
componentType
- The generic component type.annotations
- The type's type annotations.
-
-
Method Detail
-
doAnnotate
protected TypeDescription.Generic.Builder doAnnotate(java.util.List<? extends AnnotationDescription> annotations)
Description copied from class:TypeDescription.Generic.Builder
Creates a new builder for the current type and the applied type annotations.- Specified by:
doAnnotate
in classTypeDescription.Generic.Builder
- Parameters:
annotations
- Type annotations to be declared by the current type.- Returns:
- A new builder where the current type declares the supplied type annotations.
-
doBuild
protected TypeDescription.Generic doBuild()
Description copied from class:TypeDescription.Generic.Builder
Builds the generic type.- Specified by:
doBuild
in classTypeDescription.Generic.Builder
- Returns:
- The generic type.
-
-