Package de.monticore.types3
Class AbstractTypeVisitor
java.lang.Object
de.monticore.types3.AbstractTypeVisitor
- Direct Known Subclasses:
AssignmentExpressionsTypeVisitor,BitExpressionsTypeVisitor,CommonExpressionsTypeVisitor,ExpressionBasisTypeVisitor,JavaClassExpressionsTypeVisitor,LambdaExpressionsTypeVisitor,MCArrayTypesTypeVisitor,MCBasicTypesTypeVisitor,MCCollectionTypesTypeVisitor,MCCommonLiteralsTypeVisitor,MCFullGenericTypesTypeVisitor,MCFunctionTypesTypeVisitor,MCJavaLiteralsTypeVisitor,MCSimpleGenericTypesTypeVisitor,MCStructuralTypesTypeVisitor,OCLExpressionsTypeVisitor,OptionalOperatorsTypeVisitor,RegExTypeTypeVisitor,SetExpressionsTypeVisitor,SIUnitLiteralsTypeVisitor,SIUnitTypes4ComputingTypeVisitor,SIUnitTypes4MathTypeVisitor,StreamExpressionsTypeVisitor,TupleExpressionsTypeVisitor,UglyExpressionsTypeVisitor
extended by the main type system visitors
gives access to common functionality, e.g., the map from expression to type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InferenceContext4Astthe map to be filled with inference context information, s.protected static final Stringthe name to be used for Log.info, etc.static Type4Astprotected Type4Astthe map to be filled with type information In most cases, this is the global map in the mill. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IBasicSymbolsScopegetAsBasicSymbolsScope(de.monticore.symboltable.IScope scope) protected InferenceContext4Astthe map to be filled with type context information.protected Type4Astthe map to be filled with type information.voidsetContext4Ast(InferenceContext4Ast ctx4Ast) voidsetType4Ast(Type4Ast type4Ast)
-
Field Details
-
LOG_NAME
the name to be used for Log.info, etc.- See Also:
-
tmpMap
-
type4Ast
the map to be filled with type information In most cases, this is the global map in the mill. However, if a AstNode can have multiple Types (e.g., variants within the same model), one may set a different map to be filled. -
ctx4Ast
the map to be filled with inference context information, s.InferenceContext4Ast.
-
-
Constructor Details
-
AbstractTypeVisitor
public AbstractTypeVisitor()
-
-
Method Details
-
setType4Ast
-
setContext4Ast
-
getType4Ast
the map to be filled with type information. Deriving classes should always use this method to get the map. -
getInferenceContext4Ast
the map to be filled with type context information. Deriving classes should always use this method to get the map. Only dedicated visitors for target types usage (mostly called CTTIVisitor) should make use of this map. It is set to null for all over visitors! -
getAsBasicSymbolsScope
-