org.eclipse.xtext.xbase.typesystem.util
Class TypeParameterByConstraintSubstitutor
java.lang.Object
org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitorWithParameter<Parameter,Result>
org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitorWithParameter.InheritanceAware<Parameter,Result>
org.eclipse.xtext.xtype.util.AbstractXtypeReferenceVisitorWithParameter<java.util.Set<JvmTypeParameter>,JvmTypeReference>
org.eclipse.xtext.xbase.typesystem.util.TypeParameterSubstitutor
org.eclipse.xtext.xbase.typesystem.util.TypeParameterByConstraintSubstitutor
- All Implemented Interfaces:
- ITypeReferenceVisitorWithParameter<java.util.Set<JvmTypeParameter>,JvmTypeReference>, XtypeReferenceVisitorWithParameter<java.util.Set<JvmTypeParameter>,JvmTypeReference>
public class TypeParameterByConstraintSubstitutor
- extends TypeParameterSubstitutor
- Author:
- Sebastian Zarnekow - Initial contribution and API
TODO JavaDoc, toString
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeParameterByConstraintSubstitutor
public TypeParameterByConstraintSubstitutor(java.util.Map<JvmTypeParameter,JvmTypeReference> typeParameterMapping,
CommonTypeComputationServices services)
doVisitParameterizedTypeReference
public JvmTypeReference doVisitParameterizedTypeReference(JvmParameterizedTypeReference reference,
java.util.Set<JvmTypeParameter> visiting)
- Specified by:
doVisitParameterizedTypeReference
in interface ITypeReferenceVisitorWithParameter<java.util.Set<JvmTypeParameter>,JvmTypeReference>
- Overrides:
doVisitParameterizedTypeReference
in class TypeParameterSubstitutor
getUnmappedSubstitute
protected JvmTypeReference getUnmappedSubstitute(JvmParameterizedTypeReference reference,
JvmTypeParameter type,
java.util.Set<JvmTypeParameter> visiting)
getDeclaredUpperBound
protected JvmTypeReference getDeclaredUpperBound(JvmType type,
int parameterIndex,
java.util.Set<JvmTypeParameter> visiting)
doVisitWildcardTypeReference
public JvmTypeReference doVisitWildcardTypeReference(JvmWildcardTypeReference reference,
java.util.Set<JvmTypeParameter> visiting)
- Specified by:
doVisitWildcardTypeReference
in interface ITypeReferenceVisitorWithParameter<java.util.Set<JvmTypeParameter>,JvmTypeReference>
- Overrides:
doVisitWildcardTypeReference
in class TypeParameterSubstitutor
substitute
public JvmTypeReference substitute(JvmTypeReference original)
- Overrides:
substitute
in class TypeParameterSubstitutor