Class TypeComputationStateWithRootExpectation
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractStackedTypeComputationState
-
- org.eclipse.xtext.xbase.typesystem.internal.TypeComputationStateWithExpectation
-
- org.eclipse.xtext.xbase.typesystem.internal.TypeComputationStateWithRootExpectation
-
- All Implemented Interfaces:
ITypeComputationState
public class TypeComputationStateWithRootExpectation extends TypeComputationStateWithExpectation
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState
resolvedTypes
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeComputationStateWithRootExpectation(ResolvedTypes resolvedTypes, IFeatureScopeSession featureScopeSession, AbstractTypeComputationState parent, LightweightTypeReference typeReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeAssignerassignTypes()Obtain a newITypeAssignerthat allows to add a bulk ofelementsto this computation state.protected ExpressionTypeComputationStatecreateExpressionComputationState(XExpression expression, StackedResolvedTypes typeResolution)protected AbstractTypeExpectationcreateTypeExpectation(LightweightTypeReference expectedType, AbstractTypeComputationState actualState, boolean returnType)java.util.List<AbstractTypeExpectation>getReturnExpectations(AbstractTypeComputationState actualState, boolean asActualExpectation)-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.TypeComputationStateWithExpectation
getExpectations, getExpectedType
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractStackedTypeComputationState
acceptType, acceptType, getParent
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState
acceptActualType, acceptActualType, acceptActualType, acceptActualType, acceptCandidate, addDiagnostic, addExtensionsToCurrentScope, addExtensionToCurrentScope, addImports, addLocalToCurrentScope, addLocalToCurrentScope, addTypeToStaticExtensionImportScope, addTypeToStaticImportScope, afterScope, assignType, assignType, assignType, computeTypes, createCandidate, createCandidate, createCandidateWithReceiverType, createResolvedLink, createResolvedLink, createTypeAssigner, createUnboundTypeReference, discardReassignedTypes, doComputeTypes, getExpectations, getExpectedExceptions, getFeatureScopeSession, getLinkingCandidates, getLinkingCandidates, getReferenceOwner, getResolvedTypes, getResolver, getReturnExpectations, getSeverities, getSeverity, getSingleExpectation, getTypeComputer, getTypeReferences, isIgnored, pushTypes, reassignType, refineExpectedType, rewriteScope, toIdentifiableDescription, toString, withExpectation, withExpectedExceptions, withinScope, withNonVoidExpectation, withNonVoidExpectation, withoutExpectation, withoutRootExpectation, withReturnExpectation, withRootExpectation, withTypeCheckpoint
-
-
-
-
Constructor Detail
-
TypeComputationStateWithRootExpectation
protected TypeComputationStateWithRootExpectation(ResolvedTypes resolvedTypes, IFeatureScopeSession featureScopeSession, AbstractTypeComputationState parent, LightweightTypeReference typeReference)
-
-
Method Detail
-
getReturnExpectations
public java.util.List<AbstractTypeExpectation> getReturnExpectations(AbstractTypeComputationState actualState, boolean asActualExpectation)
- Overrides:
getReturnExpectationsin classAbstractStackedTypeComputationState
-
createExpressionComputationState
protected ExpressionTypeComputationState createExpressionComputationState(XExpression expression, StackedResolvedTypes typeResolution)
- Overrides:
createExpressionComputationStatein classAbstractTypeComputationState
-
assignTypes
public TypeAssigner assignTypes()
Description copied from interface:ITypeComputationStateObtain a newITypeAssignerthat allows to add a bulk ofelementsto this computation state.- Specified by:
assignTypesin interfaceITypeComputationState- Overrides:
assignTypesin classAbstractTypeComputationState
-
createTypeExpectation
protected AbstractTypeExpectation createTypeExpectation(LightweightTypeReference expectedType, AbstractTypeComputationState actualState, boolean returnType)
- Overrides:
createTypeExpectationin classTypeComputationStateWithExpectation
-
-