public class CompoundTypeAssigner extends java.lang.Object implements ITypeAssigner
| Constructor and Description |
|---|
CompoundTypeAssigner(ITypeReferenceOwner owner,
TypeAssigner[] assigners) |
| Modifier and Type | Method and 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 convert
JvmTypeReferences in the context of
the newly forked state. |
public CompoundTypeAssigner(ITypeReferenceOwner owner, TypeAssigner[] assigners)
public void assignType(org.eclipse.xtext.common.types.JvmIdentifiableElement element,
LightweightTypeReference actualType)
ITypeAssignernull,
it is treated like an error type.assignType in interface ITypeAssignerpublic ITypeComputationState getForkedState()
ITypeAssignergetForkedState in interface ITypeAssignerpublic LightweightTypeReference toLightweightTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
ITypeAssignerJvmTypeReferences in the context of
the newly forked state.toLightweightTypeReference in interface ITypeAssignerreference - the reference to convert.public ITypeReferenceOwner getReferenceOwner()
ITypeAssignergetReferenceOwner in interface ITypeAssigner