public abstract class AbstractTypeExpectation extends java.lang.Object implements ITypeExpectation
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTypeExpectation(AbstractTypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptActualType(LightweightTypeReference type,
ConformanceHint... hints) |
void |
acceptActualType(LightweightTypeReference type,
java.util.EnumSet<ConformanceHint> hints) |
UnboundTypeReference |
createUnboundTypeReference(XExpression expression,
org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)
Create a new, managed
UnboundTypeReference for the given type parameter which was
first encountered for the given expression. |
ITypeReferenceOwner |
getReferenceOwner() |
protected ResolvedTypes |
getResolvedTypes() |
protected AbstractTypeComputationState |
getState() |
boolean |
isOwnedBy(ITypeReferenceOwner referenceOwner) |
boolean |
isVoidTypeAllowed()
Returns
true if Void.TYPE is a valid type. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptActualType, copyInto, getExpectedType, isNoTypeExpectationprotected AbstractTypeExpectation(AbstractTypeComputationState state)
public ITypeReferenceOwner getReferenceOwner()
getReferenceOwner in interface ITypeExpectationpublic void acceptActualType(LightweightTypeReference type, ConformanceHint... hints)
acceptActualType in interface ITypeExpectationpublic void acceptActualType(LightweightTypeReference type, java.util.EnumSet<ConformanceHint> hints)
acceptActualType in interface ITypeExpectationpublic boolean isVoidTypeAllowed()
ITypeExpectationtrue if Void.TYPE is a valid type. It may be the only valid type
or there may exist others.isVoidTypeAllowed in interface ITypeExpectationtrue if primitive void is allowed.public boolean isOwnedBy(ITypeReferenceOwner referenceOwner)
isOwnedBy in interface ITypeExpectationprotected AbstractTypeComputationState getState()
protected ResolvedTypes getResolvedTypes()
public UnboundTypeReference createUnboundTypeReference(XExpression expression, org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)
ITypeExpectationUnboundTypeReference for the given type parameter which was
first encountered for the given expression.createUnboundTypeReference in interface ITypeExpectationexpression - the expression that used / referenced the type parametertypeParameter - the type parameterpublic java.lang.String toString()
toString in class java.lang.Object