@HashCodeAndEqualsPlugin.Enhance public static class TypeDescription.Generic.Visitor.Reducing extends Object implements TypeDescription.Generic.Visitor<TypeDescription>
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 |
---|
Reducing(TypeDescription declaringType,
List<? extends TypeVariableToken> typeVariableTokens)
Creates a new reducing type visitor.
|
Reducing(TypeDescription declaringType,
TypeVariableToken... typeVariableToken)
Creates a new reducing type visitor.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (
Sort#GENERIC_ARRAY ). |
TypeDescription |
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (
Sort#NON_GENERIC ). |
TypeDescription |
onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (
Sort#PARAMETERIZED ). |
TypeDescription |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
TypeDescription |
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
public Reducing(TypeDescription declaringType, TypeVariableToken... typeVariableToken)
declaringType
- The generic type's declaring type.typeVariableToken
- Any type variables that are directly declared by the member that declares the type being reduced.public Reducing(TypeDescription declaringType, List<? extends TypeVariableToken> typeVariableTokens)
declaringType
- The generic type's declaring type.typeVariableTokens
- Any type variables that are directly declared by the member that declares the type being reduced.public TypeDescription onGenericArray(TypeDescription.Generic genericArray)
Sort#GENERIC_ARRAY
).onGenericArray
in interface TypeDescription.Generic.Visitor<TypeDescription>
genericArray
- The generic array type.public TypeDescription onWildcard(TypeDescription.Generic wildcard)
Sort#WILDCARD
).onWildcard
in interface TypeDescription.Generic.Visitor<TypeDescription>
wildcard
- The wildcard.public TypeDescription onParameterizedType(TypeDescription.Generic parameterizedType)
Sort#PARAMETERIZED
).onParameterizedType
in interface TypeDescription.Generic.Visitor<TypeDescription>
parameterizedType
- The generic array type.public TypeDescription onTypeVariable(TypeDescription.Generic typeVariable)
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).onTypeVariable
in interface TypeDescription.Generic.Visitor<TypeDescription>
typeVariable
- The generic array type.public TypeDescription onNonGenericType(TypeDescription.Generic typeDescription)
Sort#NON_GENERIC
).onNonGenericType
in interface TypeDescription.Generic.Visitor<TypeDescription>
typeDescription
- The non-generic type.Copyright © 2014–2020. All rights reserved.