public class RootTypeExpectation extends AbstractRootTypeExpectation
| Constructor and Description |
|---|
RootTypeExpectation(LightweightTypeReference reference,
AbstractTypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
ITypeExpectation |
copyInto(ITypeReferenceOwner referenceOwner) |
LightweightTypeReference |
getExpectedType()
Returns the expected type.
|
boolean |
isNoTypeExpectation()
Returns
true if anything is allowed and no constraints are expected. |
acceptActualTypeacceptActualType, acceptActualType, createUnboundTypeReference, getReferenceOwner, getResolvedTypes, getState, isOwnedBy, isVoidTypeAllowed, toStringpublic RootTypeExpectation(LightweightTypeReference reference, AbstractTypeComputationState state)
public boolean isNoTypeExpectation()
ITypeExpectationtrue if anything is allowed and no constraints are expected.true if anything is allowed and no constraints are expected.public LightweightTypeReference getExpectedType()
ITypeExpectationITypeExpectation.getExpectedType() may return
null or some sort of unresolved, specialized reference. If null is returned, clients
may want to check ITypeExpectation.isNoTypeExpectation() or ITypeExpectation.isVoidTypeAllowed().null.public ITypeExpectation copyInto(ITypeReferenceOwner referenceOwner)