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 ITypeExpectationcopyInto(ITypeReferenceOwner referenceOwner)LightweightTypeReferencegetExpectedType()Returns the expected type.booleanisNoTypeExpectation()Returnstrueif 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:ITypeExpectationReturnstrueif anything is allowed and no constraints are expected.- Returns:
trueif anything is allowed and no constraints are expected.
-
getExpectedType
public LightweightTypeReference getExpectedType()
Description copied from interface:ITypeExpectationReturns the expected type. The expected type may be not too concrete thusITypeExpectation.getExpectedType()may returnnullor some sort of unresolved, specialized reference. Ifnullis returned, clients may want to checkITypeExpectation.isNoTypeExpectation()orITypeExpectation.isVoidTypeAllowed().- Returns:
- the expected type. This may be
null.
-
copyInto
public ITypeExpectation copyInto(ITypeReferenceOwner referenceOwner)
-
-