Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.ForRawType
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.ForRawType
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<TypeDescription.Generic>
- Enclosing interface:
TypeDescription.Generic.Visitor<T>
public static class TypeDescription.Generic.Visitor.ForRawType
extends Object
implements TypeDescription.Generic.Visitor<TypeDescription.Generic>
A visitor that transforms any type into a raw type if declaring type is generified. If the declaring type is
not generified, the original type description is returned.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.Visitor
TypeDescription.Generic.Visitor.AnnotationStripper, TypeDescription.Generic.Visitor.Assigner, TypeDescription.Generic.Visitor.ForRawType, TypeDescription.Generic.Visitor.ForSignatureVisitor, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.Validator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription
The type description that is potentially a raw type. -
Constructor Summary
ConstructorsConstructorDescriptionForRawType
(TypeDescription declaringType) Creates a visitor for representing declared types of a potentially raw type. -
Method Summary
Modifier and TypeMethodDescriptiononGenericArray
(TypeDescription.Generic genericArray) Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).onNonGenericType
(TypeDescription.Generic typeDescription) Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).onParameterizedType
(TypeDescription.Generic parameterizedType) Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).onTypeVariable
(TypeDescription.Generic typeVariable) Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).onWildcard
(TypeDescription.Generic wildcard) Visits a wildcard (TypeDefinition.Sort.WILDCARD
).
-
Field Details
-
declaringType
The type description that is potentially a raw type.
-
-
Constructor Details
-
ForRawType
Creates a visitor for representing declared types of a potentially raw type.- Parameters:
declaringType
- The type description that is potentially a raw type.
-
-
Method Details
-
onGenericArray
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).- Specified by:
onGenericArray
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
genericArray
- The generic array type.- Returns:
- The visitor's return value.
-
onWildcard
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).- Specified by:
onWildcard
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
wildcard
- The wildcard.- Returns:
- The visitor's return value.
-
onParameterizedType
Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).- Specified by:
onParameterizedType
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
parameterizedType
- The generic array type.- Returns:
- The visitor's return value.
-
onTypeVariable
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).- Specified by:
onTypeVariable
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
typeVariable
- The generic array type.- Returns:
- The visitor's return value.
-
onNonGenericType
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).- Specified by:
onNonGenericType
in interfaceTypeDescription.Generic.Visitor<TypeDescription.Generic>
- Parameters:
typeDescription
- The non-generic type.- Returns:
- The visitor's return value.
-