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 void
assignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element, LightweightTypeReference actualType)
The given element is tagged with the given type.ITypeComputationState
getForkedState()
Returns the forked state that knows about the newly assigned types.ITypeReferenceOwner
getReferenceOwner()
Returns the current owner.LightweightTypeReference
toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
Can be used to convertJvmTypeReferences
in 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:ITypeAssigner
The given element is tagged with the given type. If this type isnull
, it is treated like an error type.- Specified by:
assignType
in interfaceITypeAssigner
-
getForkedState
public ITypeComputationState getForkedState()
Description copied from interface:ITypeAssigner
Returns the forked state that knows about the newly assigned types.- Specified by:
getForkedState
in interfaceITypeAssigner
-
toLightweightTypeReference
public LightweightTypeReference toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
Description copied from interface:ITypeAssigner
Can be used to convertJvmTypeReferences
in the context of the newly forked state.- Specified by:
toLightweightTypeReference
in interfaceITypeAssigner
- Parameters:
reference
- the reference to convert.- Returns:
- the converted reference.
-
getReferenceOwner
public ITypeReferenceOwner getReferenceOwner()
Description copied from interface:ITypeAssigner
Returns the current owner.- Specified by:
getReferenceOwner
in interfaceITypeAssigner
-
-