public static class GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBinding extends GenericTypeDescription.Visitor.Substitutor
GenericTypeDescription.Visitor.Substitutor.ForAttachment, GenericTypeDescription.Visitor.Substitutor.ForDetachment, GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBindingGenericTypeDescription.Visitor.ForSignatureVisitor, GenericTypeDescription.Visitor.NoOp, GenericTypeDescription.Visitor.Substitutor, GenericTypeDescription.Visitor.TypeErasing, GenericTypeDescription.Visitor.TypeVariableErasing| Modifier | Constructor and Description |
|---|---|
protected |
ForTypeVariableBinding(Map<GenericTypeDescription,GenericTypeDescription> bindings)
Creates a new visitor for a type variable bindings.
|
| Modifier and Type | Method and Description |
|---|---|
static GenericTypeDescription.Visitor<GenericTypeDescription> |
bind(GenericTypeDescription 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() |
GenericTypeDescription |
onNonGenericType(GenericTypeDescription typeDescription)
Visits a non-generic type (
GenericTypeDescription.Sort.NON_GENERIC). |
protected GenericTypeDescription |
onSimpleType(GenericTypeDescription typeDescription)
Visits a simple, non-generic type, i.e.
|
GenericTypeDescription |
onTypeVariable(GenericTypeDescription typeVariable)
|
String |
toString() |
onGenericArray, onParameterizedType, onWildcardprotected ForTypeVariableBinding(Map<GenericTypeDescription,GenericTypeDescription> bindings)
bindings - Bindings of type variables to their substitution values.public static GenericTypeDescription.Visitor<GenericTypeDescription> bind(GenericTypeDescription typeDescription)
typeDescription - The type description to be bound.public GenericTypeDescription onTypeVariable(GenericTypeDescription typeVariable)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.VARIABLE,
GenericTypeDescription.Sort.VARIABLE_DETACHED,
GenericTypeDescription.Sort.VARIABLE_SYMBOLIC).typeVariable - The generic array type.public GenericTypeDescription onNonGenericType(GenericTypeDescription typeDescription)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.NON_GENERIC).onNonGenericType in interface GenericTypeDescription.Visitor<GenericTypeDescription>onNonGenericType in class GenericTypeDescription.Visitor.SubstitutortypeDescription - The non-generic type.protected GenericTypeDescription onSimpleType(GenericTypeDescription typeDescription)
GenericTypeDescription.Visitor.SubstitutoronSimpleType in class GenericTypeDescription.Visitor.SubstitutortypeDescription - The type that is visited.Copyright © 2014–2015. All rights reserved.