Class AbstractRootTypeComputationState
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractRootTypeComputationState
-
- All Implemented Interfaces:
ITypeComputationState
- Direct Known Subclasses:
AbstractLogicalContainerAwareRootComputationState,AnnotationValueTypeComputationState,ExpressionBasedRootTypeComputationState
public abstract class AbstractRootTypeComputationState extends AbstractTypeComputationState
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState
resolvedTypes
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRootTypeComputationState(ResolvedTypes resolvedTypes, IFeatureScopeSession featureScopeSession)
-
Method Summary
-
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
-
AbstractRootTypeComputationState
protected AbstractRootTypeComputationState(ResolvedTypes resolvedTypes, IFeatureScopeSession featureScopeSession)
-
-
Method Detail
-
computeTypes
public ITypeComputationResult computeTypes()
-
createNoTypeResult
protected abstract ITypeComputationResult createNoTypeResult()
-
getRootExpression
protected abstract XExpression getRootExpression()
-
getNonNullRootExpression
protected XExpression getNonNullRootExpression()
-
getExpectedType
protected abstract LightweightTypeReference getExpectedType()
-
acceptType
protected LightweightTypeReference acceptType(ResolvedTypes types, AbstractTypeExpectation expectation, LightweightTypeReference type, boolean returnType, int flags)
- Specified by:
acceptTypein classAbstractTypeComputationState
-
acceptType
protected LightweightTypeReference acceptType(XExpression alreadyHandled, ResolvedTypes types, AbstractTypeExpectation expectation, LightweightTypeReference type, boolean returnType, int flags)
- Specified by:
acceptTypein classAbstractTypeComputationState
-
getReturnExpectations
protected final java.util.List<AbstractTypeExpectation> getReturnExpectations(AbstractTypeComputationState actualState, boolean asActualExpectation)
- Specified by:
getReturnExpectationsin classAbstractTypeComputationState
-
getExpectations
protected final java.util.List<AbstractTypeExpectation> getExpectations(AbstractTypeComputationState actualState)
- Specified by:
getExpectationsin classAbstractTypeComputationState
-
getExpectations
protected abstract java.util.List<AbstractTypeExpectation> getExpectations(AbstractTypeComputationState actualState, boolean returnType)
-
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
-
-