Package net.bytebuddy.description.type
Class TypeDescription.Generic.Builder.OfTypeVariable
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Builder
net.bytebuddy.description.type.TypeDescription.Generic.Builder.OfTypeVariable
- Enclosing class:
TypeDescription.Generic.Builder
@Enhance
protected static class TypeDescription.Generic.Builder.OfTypeVariable
extends TypeDescription.Generic.Builder
A generic type builder building a symbolic type variable.
-
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
FieldsFields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.Builder
annotations
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OfTypeVariable
(String symbol) Creates a new builder for a symbolic type variable.protected
OfTypeVariable
(String symbol, List<? extends AnnotationDescription> annotations) Creates a new builder for a symbolic type variable. -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeDescription.Generic.Builder
doAnnotate
(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, of, of, parameterizedType, parameterizedType, parameterizedType, parameterizedType, parameterizedType, parameterizedType, rawType, rawType, rawType, rawType, typeVariable, unboundWildcard, unboundWildcard, unboundWildcard, unboundWildcard, unboundWildcard
-
Field Details
-
symbol
The variable's symbol.
-
-
Constructor Details
-
OfTypeVariable
Creates a new builder for a symbolic type variable.- Parameters:
symbol
- The variable's symbol.
-
OfTypeVariable
Creates a new builder for a symbolic type variable.- Parameters:
symbol
- The variable's symbol.annotations
- The type's type annotations.
-
-
Method Details
-
doAnnotate
protected TypeDescription.Generic.Builder doAnnotate(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
Description copied from class:TypeDescription.Generic.Builder
Builds the generic type.- Specified by:
doBuild
in classTypeDescription.Generic.Builder
- Returns:
- The generic type.
-