fparser.two.Fortran2008.submodule_stmt_r1117 ============================================ .. py:module:: fparser.two.Fortran2008.submodule_stmt_r1117 .. autoapi-nested-parse:: Module containing Fortran2008 Submodule_Stmt rule R1117 Classes ------- .. autoapisummary:: fparser.two.Fortran2008.submodule_stmt_r1117.Submodule_Stmt Module Contents --------------- .. py:class:: Submodule_Stmt(string, parent_cls=None) Bases: :py:obj:`fparser.two.utils.Base`, :py:obj:`fparser.two.utils.ScopingRegionMixin` Fortran 2008 rule R1117:: submodule-stmt is SUBMODULE ( parent-identifier ) submodule-name .. py:attribute:: subclass_names :value: [] .. py:attribute:: use_names :value: ['Submodule_Name', 'Parent_Identifier'] .. py:method:: match(fstring) :staticmethod: Check whether the input matches the rule :param st fstring: contains the Fortran that we are trying to match. :returns: instances of the Classes that have matched if there is a match or `None` if there is no match. :rtype: Optional[Tuple[:py:class:`fparser.two.Fortran2008.Parent_Identifier`, :py:class:`fparser.two.Fortran2008.Submodule_Name`]] .. py:method:: tostr() return the fortran representation of this object .. py:method:: get_name() Fortran 2008 constraint C1114 return the submodule name. This is used by the base class to check whether the submodule name matches the name used for the end submodule statement if one is provided. :return: the name of the submodule stored in a Name class :rtype: :py:class:`fparser.two.Fortran2003.Name`