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.ForSignatureVisitor, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.TypeVariableErasing, TypeDescription.Generic.Visitor.Validator| Constructor and Description |
|---|
Reducing(TypeDescription declaringType)
Creates a new reducing type visitor.
|
Reducing(TypeDescription declaringType,
List<? extends TypeVariableToken> typeVariableTokens)
Creates a new reducing type visitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
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). |
String |
toString() |
public Reducing(TypeDescription declaringType)
declaringType - The generic type's declaring type.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)
TypeDescription.Generic.VisitorSort#GENERIC_ARRAY).onGenericArray in interface TypeDescription.Generic.Visitor<TypeDescription>genericArray - The generic array type.public TypeDescription onWildcard(TypeDescription.Generic wildcard)
TypeDescription.Generic.VisitorSort#WILDCARD).onWildcard in interface TypeDescription.Generic.Visitor<TypeDescription>wildcard - The wildcard.public TypeDescription onParameterizedType(TypeDescription.Generic parameterizedType)
TypeDescription.Generic.VisitorSort#PARAMETERIZED).onParameterizedType in interface TypeDescription.Generic.Visitor<TypeDescription>parameterizedType - The generic array type.public TypeDescription onTypeVariable(TypeDescription.Generic typeVariable)
TypeDescription.Generic.VisitorSort#VARIABLE, Sort#VARIABLE_SYMBOLIC).onTypeVariable in interface TypeDescription.Generic.Visitor<TypeDescription>typeVariable - The generic array type.public TypeDescription onNonGenericType(TypeDescription.Generic typeDescription)
TypeDescription.Generic.VisitorSort#NON_GENERIC).onNonGenericType in interface TypeDescription.Generic.Visitor<TypeDescription>typeDescription - The non-generic type.Copyright © 2014–2016. All rights reserved.