Class InferenceContext
java.lang.Object
de.monticore.types3.generics.context.InferenceContext
Context information for contextual typing,
s.a.
InferenceContext4Ast.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<InferenceResult> protected InferenceVisitorModeprotected PartialFunctionInfoprotected Optional<SymTypeExpression> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWarn: inferred types are cloned rather shallow, as cloning them tends to not be required.Returns the target type information if the target type is a function type and not all information about the function is available.type for expression compatibility constraint, s.booleanvoidsetInferredTypes(List<InferenceResult> inferredTypes) voidsetTargetType(SymTypeExpression targetType) void
-
Field Details
-
mode
-
targetType
-
partialFunctionInfo
-
inferredTypes
-
-
Constructor Details
-
InferenceContext
public InferenceContext()
-
-
Method Details
-
getVisitorMode
-
setVisitorMode
-
hasTargetType
public boolean hasTargetType() -
getTargetType
type for expression compatibility constraint, s. Java spec 20 18.2.1 -
setTargetType
-
getPartialFunctionInfo
Returns the target type information if the target type is a function type and not all information about the function is available. However, if a target function type is available, its information is returned instead. -
getInferenceResults
-
setInferredTypes
-
deepClone
Warn: inferred types are cloned rather shallow, as cloning them tends to not be required.
-