Interface ITypeAssigner
-
- All Known Implementing Classes:
CompoundTypeAssigner,TypeAssigner
public interface ITypeAssignerAllows to bulk-assign types foridentifiable elements, e.g. assign the types for the parametes of an inferredoperation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element, LightweightTypeReference actualType)The given element is tagged with the given type.ITypeComputationStategetForkedState()Returns the forked state that knows about the newly assigned types.ITypeReferenceOwnergetReferenceOwner()Returns the current owner.LightweightTypeReferencetoLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)Can be used to convertJvmTypeReferencesin the context of the newly forked state.
-
-
-
Method Detail
-
assignType
void assignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element, LightweightTypeReference actualType)The given element is tagged with the given type. If this type isnull, it is treated like an error type.
-
getForkedState
ITypeComputationState getForkedState()
Returns the forked state that knows about the newly assigned types.
-
getReferenceOwner
ITypeReferenceOwner getReferenceOwner()
Returns the current owner.
-
toLightweightTypeReference
LightweightTypeReference toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
Can be used to convertJvmTypeReferencesin the context of the newly forked state.- Parameters:
reference- the reference to convert.- Returns:
- the converted reference.
-
-