public static class TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding extends TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
Modifier and Type | Class and Description |
---|---|
protected class |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable
Implementation of a type variable on a method that is not substituted.
|
protected class |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor
Substitutes a type variable, either with a new binding if the variable is defined by a type or with a
retained type variable if the variable is defined by a method.
|
TypeDescription.Generic.Visitor.Substitutor.ForAttachment, TypeDescription.Generic.Visitor.Substitutor.ForDetachment, 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.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
Modifier | Constructor and Description |
---|---|
protected |
ForTypeVariableBinding(Map<TypeDescription.Generic,TypeDescription.Generic> bindings)
Creates a new visitor for a type variable bindings.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Visitor<TypeDescription.Generic> |
bind(TypeDescription.Generic typeDescription)
Creates a visitor that binds the variables of the given generic type by the generic type's values.
|
boolean |
equals(Object other) |
int |
hashCode() |
TypeDescription.Generic |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
String |
toString() |
onNonGenericType, onSimpleType
onGenericArray, onParameterizedType, onWildcard
protected ForTypeVariableBinding(Map<TypeDescription.Generic,TypeDescription.Generic> bindings)
bindings
- Bindings of type variables to their substitution values.public static TypeDescription.Generic.Visitor<TypeDescription.Generic> bind(TypeDescription.Generic typeDescription)
typeDescription
- The type description to be bound.public TypeDescription.Generic onTypeVariable(TypeDescription.Generic typeVariable)
TypeDescription.Generic.Visitor
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).typeVariable
- The generic array type.Copyright © 2014–2016. All rights reserved.