public class TypeParameterByConstraintSubstitutor extends CustomTypeParameterSubstitutor
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeParameterByConstraintSubstitutor.DeclaredConstraintVisitingInfo |
Constructor and Description |
---|
TypeParameterByConstraintSubstitutor(java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> typeParameterMapping,
ITypeReferenceOwner owner) |
TypeParameterByConstraintSubstitutor(java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> typeParameterMapping,
ITypeReferenceOwner owner,
boolean ignoreDeclaredTypeParameters) |
Modifier and Type | Method and Description |
---|---|
protected TypeParameterByConstraintSubstitutor.DeclaredConstraintVisitingInfo |
createVisiting() |
protected LightweightTypeReference |
doVisitUnboundTypeReference(UnboundTypeReference reference,
ConstraintVisitingInfo visiting) |
protected LightweightTypeReference |
getDeclaredUpperBound(JvmTypeParameter typeParameter,
ConstraintVisitingInfo visiting) |
protected LightweightTypeReference |
getUnmappedSubstitute(ParameterizedTypeReference reference,
JvmTypeParameter type,
ConstraintVisitingInfo visiting) |
LightweightTypeReference |
substitute(JvmTypeParameter original) |
protected LightweightTypeReference |
visitTypeArgument(LightweightTypeReference reference,
ConstraintVisitingInfo visiting,
boolean lowerBound) |
createVisiting, doVisitParameterizedTypeReference, enhanceParameterizedTypeReference, getBoundTypeArgument, getDeclaredUpperBound, getObjectReference, isDeclaredTypeParameter, substitute
copy, doVisitAnyTypeReference, doVisitArrayTypeReference, doVisitCompoundTypeReference, doVisitFunctionTypeReference, doVisitInnerFunctionTypeReference, doVisitInnerTypeReference, doVisitParameterizedTypeReference, doVisitUnknownTypeReference, doVisitWildcardTypeReference, enhanceFunctionType, enhanceMapping, getBoundTypeArgument, getOwner, getTypeParameterMapping, substitute, toString, visitTypeArgument
doVisitMultiTypeReference, doVisitSynonymTypeReference, doVisitTypeReference
public TypeParameterByConstraintSubstitutor(java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> typeParameterMapping, ITypeReferenceOwner owner)
public TypeParameterByConstraintSubstitutor(java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> typeParameterMapping, ITypeReferenceOwner owner, boolean ignoreDeclaredTypeParameters)
protected LightweightTypeReference doVisitUnboundTypeReference(UnboundTypeReference reference, ConstraintVisitingInfo visiting)
protected LightweightTypeReference visitTypeArgument(LightweightTypeReference reference, ConstraintVisitingInfo visiting, boolean lowerBound)
visitTypeArgument
in class TypeParameterSubstitutor<ConstraintVisitingInfo>
lowerBound
- if the given reference was used as the lower bound of a wildcardprotected LightweightTypeReference getDeclaredUpperBound(JvmTypeParameter typeParameter, ConstraintVisitingInfo visiting)
getDeclaredUpperBound
in class CustomTypeParameterSubstitutor
protected TypeParameterByConstraintSubstitutor.DeclaredConstraintVisitingInfo createVisiting()
createVisiting
in class CustomTypeParameterSubstitutor
public LightweightTypeReference substitute(JvmTypeParameter original)
protected LightweightTypeReference getUnmappedSubstitute(ParameterizedTypeReference reference, JvmTypeParameter type, ConstraintVisitingInfo visiting)
getUnmappedSubstitute
in class CustomTypeParameterSubstitutor