Class TestGenericCodeGenerator

    • Constructor Detail

      • TestGenericCodeGenerator

        public TestGenericCodeGenerator​(NamedObj container,
                                        java.lang.String name)
                                 throws IllegalActionException,
                                        NameDuplicationException
        Create a new instance of the code generator. The file extension is set to the last package of the generatePackage parameter.
        Parameters:
        container - The container.
        name - The name of the code generator.
        Throws:
        IllegalActionException - If the super class throws the exception or error occurs when setting the file path.
        NameDuplicationException - If the super class throws the exception or an error occurs when setting the file path.
    • Method Detail

      • comment

        public java.lang.String comment​(java.lang.String comment)
        Return a formatted comment containing the specified string. In this class, the comment starts with "<TGCF" and ends with "TGCF>" to denote that the base class removes comments, but that we want to test the infrastructure that creates comments.
        Overrides:
        comment in class GenericCodeGenerator
        Parameters:
        comment - The string to put in the comment.
        Returns:
        A formatted comment.