Class CompoundTypeAssigner
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.CompoundTypeAssigner
-
- All Implemented Interfaces:
ITypeAssigner
public class CompoundTypeAssigner extends java.lang.Object implements ITypeAssigner
-
-
Constructor Summary
Constructors Constructor Description CompoundTypeAssigner(ITypeReferenceOwner owner, TypeAssigner[] assigners)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
CompoundTypeAssigner
public CompoundTypeAssigner(ITypeReferenceOwner owner, TypeAssigner[] assigners)
-
-
Method Detail
-
assignType
public void assignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element, LightweightTypeReference actualType)Description copied from interface:ITypeAssignerThe given element is tagged with the given type. If this type isnull, it is treated like an error type.- Specified by:
assignTypein interfaceITypeAssigner
-
getForkedState
public ITypeComputationState getForkedState()
Description copied from interface:ITypeAssignerReturns the forked state that knows about the newly assigned types.- Specified by:
getForkedStatein interfaceITypeAssigner
-
toLightweightTypeReference
public LightweightTypeReference toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
Description copied from interface:ITypeAssignerCan be used to convertJvmTypeReferencesin the context of the newly forked state.- Specified by:
toLightweightTypeReferencein interfaceITypeAssigner- Parameters:
reference- the reference to convert.- Returns:
- the converted reference.
-
getReferenceOwner
public ITypeReferenceOwner getReferenceOwner()
Description copied from interface:ITypeAssignerReturns the current owner.- Specified by:
getReferenceOwnerin interfaceITypeAssigner
-
-