Class SynthesizeSymTypeFromMCBasicTypes

java.lang.Object
de.monticore.types.check.AbstractSynthesizeFromType
de.monticore.types.check.SynthesizeSymTypeFromMCBasicTypes
All Implemented Interfaces:
MCBasicTypesHandler, MCBasicTypesVisitor2, de.monticore.visitor.IHandler, de.monticore.visitor.IVisitor
Direct Known Subclasses:
SynthesizeFromMCBT4Grammar

@Deprecated public class SynthesizeSymTypeFromMCBasicTypes extends AbstractSynthesizeFromType implements MCBasicTypesVisitor2, MCBasicTypesHandler
Deprecated.
part of typecheck1, use TypeCheck3 instead.
Visitor for Derivation of SymType from MCBasicTypes i.e. for types/MCBasicTypes.mc4
  • Field Details

  • Constructor Details

    • SynthesizeSymTypeFromMCBasicTypes

      public SynthesizeSymTypeFromMCBasicTypes()
      Deprecated.
  • Method Details

    • endVisit

      public void endVisit(ASTMCPrimitiveType primitiveType)
      Deprecated.
      We use mainly endVisit, because the result is synthesized along the tree, when walking upwards
      Specified by:
      endVisit in interface MCBasicTypesVisitor2
    • endVisit

      public void endVisit(ASTMCVoidType voidType)
      Deprecated.
      Specified by:
      endVisit in interface MCBasicTypesVisitor2
    • endVisit

      public void endVisit(ASTMCReturnType rType)
      Deprecated.
      Specified by:
      endVisit in interface MCBasicTypesVisitor2
    • getTraverser

      public MCBasicTypesTraverser getTraverser()
      Deprecated.
      Specified by:
      getTraverser in interface de.monticore.visitor.IHandler
      Specified by:
      getTraverser in interface MCBasicTypesHandler
      Specified by:
      getTraverser in class AbstractSynthesizeFromType
    • setTraverser

      public void setTraverser(MCBasicTypesTraverser traverser)
      Deprecated.
      Specified by:
      setTraverser in interface MCBasicTypesHandler
    • endVisit

      public void endVisit(ASTMCQualifiedName qName)
      Deprecated.
      Specified by:
      endVisit in interface MCBasicTypesVisitor2
    • endVisit

      public void endVisit(ASTMCQualifiedType node)
      Deprecated.
      Specified by:
      endVisit in interface MCBasicTypesVisitor2
    • createTypeVariable

      protected Optional<SymTypeVariable> createTypeVariable(ASTMCQualifiedName qName)
      Deprecated.
      This method creates a sym-type expression for the first resolved type variable symbol matching the provided qualified name. It logs an error if multiple matching symbols are found. The resulting sym-type expression is encapsulated in an optional.
      Parameters:
      qName - the qualified name
      Returns:
      an optional of the created sym-type expression, empty if no match type variable symbol is found
    • createTypeObject

      protected Optional<SymTypeOfObject> createTypeObject(ASTMCQualifiedName qName)
      Deprecated.
      This method creates a sym-type expression for the first resolved type symbol matching the provided qualified name. It logs an error if multiple matching symbols are found. The resulting sym-type expression is encapsulated in an optional.
      Parameters:
      qName - the qualified name
      Returns:
      an optional of the created sym-type expression, empty if no match type symbol is found
    • createObscure

      protected SymTypeObscure createObscure(ASTMCQualifiedName qName)
      Deprecated.
      This method creates a sym-type obscure and logs an error that no symbol matching the provided qualified name can be found.
      Parameters:
      qName - the qualified name
      Returns:
      a sym-type obscure