@HashCodeAndEqualsPlugin.Enhance public static class TypeDescription.Generic.Visitor.Substitutor.ForDetachment extends TypeDescription.Generic.Visitor.Substitutor
ElementMatcher
with TargetType
.TypeDescription.Generic.Visitor.Substitutor.ForAttachment, TypeDescription.Generic.Visitor.Substitutor.ForDetachment, TypeDescription.Generic.Visitor.Substitutor.ForReplacement, TypeDescription.Generic.Visitor.Substitutor.ForTokenNormalization, TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding, TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
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
Constructor and Description |
---|
ForDetachment(ElementMatcher<? super TypeDescription> typeMatcher)
Creates a visitor for detaching a type.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Visitor<TypeDescription.Generic> |
of(TypeDefinition typeDefinition)
Returns a new detachment visitor that detaches any type matching the supplied type description.
|
protected TypeDescription.Generic |
onSimpleType(TypeDescription.Generic typeDescription)
Visits a simple, non-generic type, i.e.
|
TypeDescription.Generic |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
onGenericArray, onNonGenericType, onParameterizedType, onWildcard
public ForDetachment(ElementMatcher<? super TypeDescription> typeMatcher)
typeMatcher
- A type matcher for identifying the declaring type.public static TypeDescription.Generic.Visitor<TypeDescription.Generic> of(TypeDefinition typeDefinition)
typeDefinition
- The type to detach.public TypeDescription.Generic onTypeVariable(TypeDescription.Generic typeVariable)
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).typeVariable
- The generic array type.protected TypeDescription.Generic onSimpleType(TypeDescription.Generic typeDescription)
TypeDescription.Generic.Visitor.Substitutor
onSimpleType
in class TypeDescription.Generic.Visitor.Substitutor
typeDescription
- The type that is visited.Copyright © 2014–2023. All rights reserved.