Class ActualTypeArgumentCollector
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.references.TypeReferenceVisitorWithParameter<LightweightTypeReference>
-
- org.eclipse.xtext.xbase.typesystem.util.AbstractTypeReferencePairWalker
-
- org.eclipse.xtext.xbase.typesystem.util.ActualTypeArgumentCollector
-
- Direct Known Subclasses:
UnboundTypeParameterAwareTypeArgumentCollector
public class ActualTypeArgumentCollector extends AbstractTypeReferencePairWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classActualTypeArgumentCollector.ActualParameterizedTypeReferenceTraverser-
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.typesystem.util.AbstractTypeReferencePairWalker
AbstractTypeReferencePairWalker.ArrayTypeReferenceTraverser, AbstractTypeReferencePairWalker.CompoundTypeReferenceTraverser, AbstractTypeReferencePairWalker.ParameterizedTypeReferenceTraverser, AbstractTypeReferencePairWalker.UnboundTypeReferenceTraverser, AbstractTypeReferencePairWalker.WildcardTypeReferenceTraverser
-
-
Constructor Summary
Constructors Constructor Description ActualTypeArgumentCollector(java.util.Collection<org.eclipse.xtext.common.types.JvmTypeParameter> parametersToBeMapped, BoundTypeArgumentSource defaultSource, ITypeReferenceOwner owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LightweightBoundTypeArgumentboundByConstraint(LightweightTypeReference reference, java.lang.Object origin)protected LightweightBoundTypeArgumentboundByDefaultSource(LightweightTypeReference reference)protected AbstractTypeReferencePairWalker.ParameterizedTypeReferenceTraversercreateParameterizedTypeReferenceTraverser()protected BoundTypeArgumentSourcegetDefaultSource()protected java.util.Collection<org.eclipse.xtext.common.types.JvmTypeParameter>getParametersToProcess()java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,java.util.List<LightweightBoundTypeArgument>>getTypeParameterMapping()voidpopulateTypeParameterMapping(LightweightTypeReference declaredType, LightweightTypeReference actualType)voidprocessPairedReferences(LightweightTypeReference declaredType, LightweightTypeReference actualType)protected voidprocessTypeParameter(org.eclipse.xtext.common.types.JvmTypeParameter typeParameter, LightweightTypeReference reference)java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,java.util.List<LightweightBoundTypeArgument>>rawGetTypeParameterMapping()protected booleanshouldProcess(org.eclipse.xtext.common.types.JvmTypeParameter type)Allows to veto the processing of a given type parameter.-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.util.AbstractTypeReferencePairWalker
createArrayTypeReferenceTraverser, createCompoundTypeReferenceTraverser, createTypeParameterSubstitutor, createUnboundTypeReferenceTraverser, createWildcardTypeReferenceTraverser, doVisitAnyTypeReference, doVisitArrayTypeReference, doVisitCompoundTypeReference, doVisitParameterizedTypeReference, doVisitUnboundTypeReference, doVisitUnknownTypeReference, doVisitWildcardTypeReference, findMappedParameter, getActualVariance, getExpectedVariance, getOrigin, getOwner, outerVisit, outerVisit
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.references.TypeReferenceVisitorWithParameter
doVisitFunctionTypeReference, doVisitInnerFunctionTypeReference, doVisitInnerTypeReference, doVisitMultiTypeReference, doVisitSynonymTypeReference, doVisitTypeReference
-
-
-
-
Constructor Detail
-
ActualTypeArgumentCollector
public ActualTypeArgumentCollector(java.util.Collection<org.eclipse.xtext.common.types.JvmTypeParameter> parametersToBeMapped, BoundTypeArgumentSource defaultSource, ITypeReferenceOwner owner)
-
-
Method Detail
-
populateTypeParameterMapping
public void populateTypeParameterMapping(LightweightTypeReference declaredType, LightweightTypeReference actualType)
-
boundByConstraint
protected LightweightBoundTypeArgument boundByConstraint(LightweightTypeReference reference, java.lang.Object origin)
-
getDefaultSource
protected BoundTypeArgumentSource getDefaultSource()
-
boundByDefaultSource
protected LightweightBoundTypeArgument boundByDefaultSource(LightweightTypeReference reference)
-
createParameterizedTypeReferenceTraverser
protected AbstractTypeReferencePairWalker.ParameterizedTypeReferenceTraverser createParameterizedTypeReferenceTraverser()
- Overrides:
createParameterizedTypeReferenceTraverserin classAbstractTypeReferencePairWalker
-
processTypeParameter
protected void processTypeParameter(org.eclipse.xtext.common.types.JvmTypeParameter typeParameter, LightweightTypeReference reference)- Overrides:
processTypeParameterin classAbstractTypeReferencePairWalker- Parameters:
typeParameter- the to-be-processed type parameter.reference- the reference that is bound to the given type parameter.
-
rawGetTypeParameterMapping
public java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,java.util.List<LightweightBoundTypeArgument>> rawGetTypeParameterMapping()
-
getParametersToProcess
protected java.util.Collection<org.eclipse.xtext.common.types.JvmTypeParameter> getParametersToProcess()
-
shouldProcess
protected boolean shouldProcess(org.eclipse.xtext.common.types.JvmTypeParameter type)
Description copied from class:AbstractTypeReferencePairWalkerAllows to veto the processing of a given type parameter.- Overrides:
shouldProcessin classAbstractTypeReferencePairWalker- Parameters:
type- the to-be-processed type parameter.- Returns:
- always
true.
-
processPairedReferences
public void processPairedReferences(LightweightTypeReference declaredType, LightweightTypeReference actualType)
- Overrides:
processPairedReferencesin classAbstractTypeReferencePairWalker
-
getTypeParameterMapping
public java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,java.util.List<LightweightBoundTypeArgument>> getTypeParameterMapping()
-
-