Class AbstractTypeReferencePairWalker
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.references.TypeReferenceVisitorWithParameter<LightweightTypeReference>
-
- org.eclipse.xtext.xbase.typesystem.util.AbstractTypeReferencePairWalker
-
- Direct Known Subclasses:
ActualTypeArgumentCollector,DeferredTypeParameterHintCollector
public abstract class AbstractTypeReferencePairWalker extends TypeReferenceVisitorWithParameter<LightweightTypeReference>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractTypeReferencePairWalker.ArrayTypeReferenceTraverserprotected classAbstractTypeReferencePairWalker.CompoundTypeReferenceTraverserprotected classAbstractTypeReferencePairWalker.ParameterizedTypeReferenceTraverserprotected classAbstractTypeReferencePairWalker.UnboundTypeReferenceTraverserprotected classAbstractTypeReferencePairWalker.WildcardTypeReferenceTraverser
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTypeReferencePairWalker(ITypeReferenceOwner owner)
-
Method Summary
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.references.TypeReferenceVisitorWithParameter
doVisitFunctionTypeReference, doVisitInnerFunctionTypeReference, doVisitInnerTypeReference, doVisitMultiTypeReference, doVisitSynonymTypeReference, doVisitTypeReference
-
-
-
-
Constructor Detail
-
AbstractTypeReferencePairWalker
protected AbstractTypeReferencePairWalker(ITypeReferenceOwner owner)
-
-
Method Detail
-
processTypeParameter
protected void processTypeParameter(org.eclipse.xtext.common.types.JvmTypeParameter typeParameter, LightweightTypeReference reference)- Parameters:
typeParameter- the to-be-processed type parameter.reference- the reference that is bound to the given type parameter.
-
shouldProcess
protected boolean shouldProcess(org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)
Allows to veto the processing of a given type parameter.- Parameters:
typeParameter- the to-be-processed type parameter.- Returns:
- always
true.
-
createUnboundTypeReferenceTraverser
protected AbstractTypeReferencePairWalker.UnboundTypeReferenceTraverser createUnboundTypeReferenceTraverser()
-
createArrayTypeReferenceTraverser
protected AbstractTypeReferencePairWalker.ArrayTypeReferenceTraverser createArrayTypeReferenceTraverser()
-
createCompoundTypeReferenceTraverser
protected AbstractTypeReferencePairWalker.CompoundTypeReferenceTraverser createCompoundTypeReferenceTraverser()
-
createWildcardTypeReferenceTraverser
protected AbstractTypeReferencePairWalker.WildcardTypeReferenceTraverser createWildcardTypeReferenceTraverser()
-
createParameterizedTypeReferenceTraverser
protected AbstractTypeReferencePairWalker.ParameterizedTypeReferenceTraverser createParameterizedTypeReferenceTraverser()
-
doVisitParameterizedTypeReference
protected void doVisitParameterizedTypeReference(ParameterizedTypeReference reference, LightweightTypeReference param)
- Overrides:
doVisitParameterizedTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
doVisitWildcardTypeReference
protected void doVisitWildcardTypeReference(WildcardTypeReference declaredReference, LightweightTypeReference param)
- Overrides:
doVisitWildcardTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
doVisitArrayTypeReference
protected void doVisitArrayTypeReference(ArrayTypeReference declaredReference, LightweightTypeReference param)
- Overrides:
doVisitArrayTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
doVisitCompoundTypeReference
protected void doVisitCompoundTypeReference(CompoundTypeReference declaredReference, LightweightTypeReference param)
- Overrides:
doVisitCompoundTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
doVisitUnboundTypeReference
protected void doVisitUnboundTypeReference(UnboundTypeReference reference, LightweightTypeReference param)
- Overrides:
doVisitUnboundTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
doVisitAnyTypeReference
protected void doVisitAnyTypeReference(AnyTypeReference reference, LightweightTypeReference param)
- Overrides:
doVisitAnyTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
doVisitUnknownTypeReference
protected void doVisitUnknownTypeReference(UnknownTypeReference reference, LightweightTypeReference param)
- Overrides:
doVisitUnknownTypeReferencein classTypeReferenceVisitorWithParameter<LightweightTypeReference>
-
outerVisit
protected void outerVisit(LightweightTypeReference declaredType, LightweightTypeReference actualType, java.lang.Object origin, VarianceInfo expectedVariance, VarianceInfo actualVariance)
-
outerVisit
protected void outerVisit(LightweightTypeReference declaredType, LightweightTypeReference actualType)
-
processPairedReferences
public void processPairedReferences(LightweightTypeReference declaredType, LightweightTypeReference actualType)
-
getActualVariance
protected VarianceInfo getActualVariance()
-
getExpectedVariance
protected VarianceInfo getExpectedVariance()
-
getOrigin
protected java.lang.Object getOrigin()
-
getOwner
protected ITypeReferenceOwner getOwner()
-
createTypeParameterSubstitutor
protected TypeParameterSubstitutor<?> createTypeParameterSubstitutor(java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> mapping)
-
findMappedParameter
protected org.eclipse.xtext.common.types.JvmTypeParameter findMappedParameter(org.eclipse.xtext.common.types.JvmTypeParameter parameter, java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> mapping, java.util.Collection<org.eclipse.xtext.common.types.JvmTypeParameter> visited)
-
-