Class UglyExpressionsTypeVisitor

    • Constructor Detail

      • UglyExpressionsTypeVisitor

        public UglyExpressionsTypeVisitor()
    • Method Detail

      • setOOWithinTypeBasicSymbolsResolver

        @Deprecated(forRemoval=true)
        public void setOOWithinTypeBasicSymbolsResolver​(OOWithinTypeBasicSymbolsResolver withinTypeResolver)
        Deprecated, for removal: This API element is subject to removal in a future version.
        is now a static delegate
      • setTypeContextCalculator

        @Deprecated(forRemoval=true)
        public void setTypeContextCalculator​(TypeContextCalculator typeCtxCalc)
        Deprecated, for removal: This API element is subject to removal in a future version.
        is now a static delegate
      • getCreatorType

        protected SymTypeExpression getCreatorType​(ASTCreator creator)
        This needs to be extended, whenever a new Creator is added.

        Returns the type the CreatorExpressions is to have. This is calculated here, as a Creator is neither an ASTExpression nor an ASTMCType, thus we do not need to modify Type4Ast.

      • getArrayDimensionSpecifierSize

        protected java.util.Optional<java.lang.Integer> getArrayDimensionSpecifierSize​(ASTArrayDimensionSpecifier dimSpec)
        only returns the dimensionality if the expression types are correct if the expressions are not correct, Log::error will be used
      • getConstructors

        protected java.util.List<SymTypeOfFunction> getConstructors​(ASTClassCreator creator)
        Constructors of the inner type, NOT filtered by the argument expressions. Important: The ASTClassCreator.getMCType() has to have its type stored in the map already.
        Returns:
        if empty, an error will have been logged