public abstract class CustomTypeParameterSubstitutor extends TypeParameterSubstitutor<ConstraintVisitingInfo>
Modifier | Constructor and Description |
---|---|
protected |
CustomTypeParameterSubstitutor(java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> typeParameterMapping,
ITypeReferenceOwner owner) |
copy, doVisitAnyTypeReference, doVisitArrayTypeReference, doVisitCompoundTypeReference, doVisitFunctionTypeReference, doVisitInnerFunctionTypeReference, doVisitInnerTypeReference, doVisitParameterizedTypeReference, doVisitUnknownTypeReference, doVisitWildcardTypeReference, enhanceFunctionType, enhanceMapping, getBoundTypeArgument, getOwner, getTypeParameterMapping, substitute, toString, visitTypeArgument, visitTypeArgument
doVisitMultiTypeReference, doVisitSynonymTypeReference, doVisitTypeReference, doVisitUnboundTypeReference
protected CustomTypeParameterSubstitutor(java.util.Map<JvmTypeParameter,LightweightMergedBoundTypeArgument> typeParameterMapping, ITypeReferenceOwner owner)
public LightweightTypeReference doVisitParameterizedTypeReference(ParameterizedTypeReference reference, ConstraintVisitingInfo visiting)
doVisitParameterizedTypeReference
in class TypeParameterSubstitutor<ConstraintVisitingInfo>
protected LightweightTypeReference enhanceParameterizedTypeReference(ParameterizedTypeReference origin, JvmType type, ParameterizedTypeReference result, ConstraintVisitingInfo visiting)
enhanceParameterizedTypeReference
in class TypeParameterSubstitutor<ConstraintVisitingInfo>
type
- the type of the reference. May be used by subtypes.protected boolean isDeclaredTypeParameter(JvmTypeParameter typeParameter)
protected LightweightMergedBoundTypeArgument getBoundTypeArgument(JvmTypeParameter type, ConstraintVisitingInfo info)
type
- the type parameter that is boundinfo
- the current traversal stateprotected abstract LightweightTypeReference getUnmappedSubstitute(ParameterizedTypeReference reference, JvmTypeParameter type, ConstraintVisitingInfo visiting)
protected LightweightTypeReference getDeclaredUpperBound(JvmTypeParameterDeclarator type, int parameterIndex, ConstraintVisitingInfo visiting)
protected LightweightTypeReference getObjectReference()
protected LightweightTypeReference getDeclaredUpperBound(JvmTypeParameter typeParameter, ConstraintVisitingInfo visiting)
public LightweightTypeReference substitute(LightweightTypeReference original)
substitute
in class TypeParameterSubstitutor<ConstraintVisitingInfo>
protected ConstraintVisitingInfo createVisiting()
createVisiting
in class TypeParameterSubstitutor<ConstraintVisitingInfo>
protected ConstraintVisitingInfo createVisiting(JvmTypeParameter initialValue)