fparser Reference Guide  0.0.14
fparser.common.readfortran.MultiLine Class Reference
Inheritance diagram for fparser.common.readfortran.MultiLine:

Public Member Functions

def __init__ (self, prefix, block, suffix, linenospan, reader)
 
def __repr__ (self)
 
def isempty (self, ignore_comments=False)
 

Public Attributes

 prefix
 
 block
 
 suffix
 
 span
 
 reader
 

Detailed Description

Holds PYF file multiline.

PYF file multiline is represented as follows::
  prefix+'''+lines+'''+suffix.

:param str prefix: the prefix of the line(s)
:param block: list of lines
:type block: List[:py:class:`fparser.common.readfortran.Line`]
:param str suffix: the suffix of the block of lines
:param linenospan: starting and ending line numbers
:type linenospan: Tuple[int, int]
:param reader: the current reader instance.
:type reader: :py:class:`fparser.common.readfortran.FortranReaderBase`

Definition at line 472 of file readfortran.py.

Member Function Documentation

◆ isempty()

def fparser.common.readfortran.MultiLine.isempty (   self,
  ignore_comments = False 
)
Returns true if there is no significant text in this multi-line
string.

Definition at line 506 of file readfortran.py.

References fparser.common.readfortran.MultiLine.block, fparser.common.readfortran.MultiLine.prefix, and fparser.common.readfortran.MultiLine.suffix.

506  def isempty(self, ignore_comments=False):
507  """
508  Returns true if there is no significant text in this multi-line
509  string.
510  """
511  return not (self.prefix or self.block or self.suffix)
512 
513 

The documentation for this class was generated from the following file: