Package net.bytebuddy.description.type
Class TypeDescription.Generic.Builder.OfNonGenericType
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.Builder
-
- net.bytebuddy.description.type.TypeDescription.Generic.Builder.OfNonGenericType
-
- Enclosing class:
- TypeDescription.Generic.Builder
@Enhance protected static class TypeDescription.Generic.Builder.OfNonGenericType extends TypeDescription.Generic.Builder
A generic type builder for building a non-generic 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, TypeDescription.Generic.Builder.Visitor
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription.GenericownerTypeThe raw type's (annotated) declaring type ornullif no such type is defined.private TypeDescriptiontypeDescriptionThe type's erasure.-
Fields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.Builder
annotations
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOfNonGenericType(TypeDescription typeDescription)Creates a builder for a non-generic type.protectedOfNonGenericType(TypeDescription typeDescription, TypeDescription ownerType)Creates a builder for a non-generic type.protectedOfNonGenericType(TypeDescription typeDescription, TypeDescription.Generic ownerType)Creates a builder for a non-generic type.protectedOfNonGenericType(TypeDescription typeDescription, TypeDescription.Generic ownerType, java.util.List<? extends AnnotationDescription> annotations)Creates a builder for a non-generic type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeDescription.Generic.BuilderdoAnnotate(java.util.List<? extends AnnotationDescription> annotations)Creates a new builder for the current type and the applied type annotations.protected TypeDescription.GenericdoBuild()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, of, of, parameterizedType, parameterizedType, parameterizedType, parameterizedType, parameterizedType, parameterizedType, rawType, rawType, rawType, rawType, typeVariable, unboundWildcard, unboundWildcard, unboundWildcard, unboundWildcard, unboundWildcard
-
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The type's erasure.
-
ownerType
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final TypeDescription.Generic ownerType
The raw type's (annotated) declaring type ornullif no such type is defined.
-
-
Constructor Detail
-
OfNonGenericType
protected OfNonGenericType(TypeDescription typeDescription)
Creates a builder for a non-generic type.- Parameters:
typeDescription- The type's erasure.
-
OfNonGenericType
protected OfNonGenericType(TypeDescription typeDescription, @MaybeNull TypeDescription ownerType)
Creates a builder for a non-generic type.- Parameters:
typeDescription- The type's erasure.ownerType- The raw type's raw declaring type ornullif no such type is defined.
-
OfNonGenericType
protected OfNonGenericType(TypeDescription typeDescription, @MaybeNull TypeDescription.Generic ownerType)
Creates a builder for a non-generic type.- Parameters:
typeDescription- The type's erasure.ownerType- The raw type's (annotated) declaring type.
-
OfNonGenericType
protected OfNonGenericType(TypeDescription typeDescription, @MaybeNull TypeDescription.Generic ownerType, java.util.List<? extends AnnotationDescription> annotations)
Creates a builder for a non-generic type.- Parameters:
typeDescription- The type's erasure.ownerType- The raw type's (annotated) declaring 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.BuilderCreates a new builder for the current type and the applied type annotations.- Specified by:
doAnnotatein 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.BuilderBuilds the generic type.- Specified by:
doBuildin classTypeDescription.Generic.Builder- Returns:
- The generic type.
-
-