Class RootTypeExpectation
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeExpectation
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractRootTypeExpectation
-
- org.eclipse.xtext.xbase.typesystem.internal.RootTypeExpectation
-
- All Implemented Interfaces:
ITypeExpectation
public class RootTypeExpectation extends AbstractRootTypeExpectation
-
-
Constructor Summary
Constructors Constructor Description RootTypeExpectation(LightweightTypeReference reference, AbstractTypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITypeExpectation
copyInto(ITypeReferenceOwner referenceOwner)
LightweightTypeReference
getExpectedType()
Returns the expected type.boolean
isNoTypeExpectation()
Returnstrue
if anything is allowed and no constraints are expected.-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractRootTypeExpectation
acceptActualType
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeExpectation
acceptActualType, acceptActualType, createUnboundTypeReference, getReferenceOwner, getResolvedTypes, getState, isOwnedBy, isVoidTypeAllowed, toString
-
-
-
-
Constructor Detail
-
RootTypeExpectation
public RootTypeExpectation(LightweightTypeReference reference, AbstractTypeComputationState state)
-
-
Method Detail
-
isNoTypeExpectation
public boolean isNoTypeExpectation()
Description copied from interface:ITypeExpectation
Returnstrue
if anything is allowed and no constraints are expected.- Returns:
true
if anything is allowed and no constraints are expected.
-
getExpectedType
public LightweightTypeReference getExpectedType()
Description copied from interface:ITypeExpectation
Returns the expected type. The expected type may be not too concrete thusITypeExpectation.getExpectedType()
may returnnull
or some sort of unresolved, specialized reference. Ifnull
is returned, clients may want to checkITypeExpectation.isNoTypeExpectation()
orITypeExpectation.isVoidTypeAllowed()
.- Returns:
- the expected type. This may be
null
.
-
copyInto
public ITypeExpectation copyInto(ITypeReferenceOwner referenceOwner)
-
-