Class zc390.section_definition

java.lang.Object
zc390.section_definition
Enclosing class:
zc390

private class zc390.section_definition extends Object
// #655 Define the divisions, sections, and paragraphs with their properties // #655
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) String
    division name
    (package private) String
    full name: division.section.paragraph
    (package private) boolean
    true if section is comment-only
    (package private) boolean
    true if section is defined
    (package private) boolean
    true if section is free-format text
    (package private) String
    paragraph name
    (package private) String
    section name
    (package private) int
    identifier
  • Constructor Summary

    Constructors
    Constructor
    Description
    section_definition(String section_specification)
    // #655 Constructor // #655 // #655 This constructor takes a definition string and decomposes it to construct the data for a new instance // #655 // #655
    section_definition(String my_division_name, String my_section_name, String my_paragraph_name)
    // #655 Constructor // #655 // #655 This constructor takes an explicit division, section, and paragraph to create a default instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) int
    // #655 find_index // #655 Input: section_definition with: // #655 Division name // #655 Section name // #655 Paragraph name // #655 program_sections (implicit) // #655 Output: index nr if section_definition entry was found.
    (package private) boolean
    // #655 is_comment // #655 Input: -- // #655 Output: boolean is_comment property of the class instance // #655 // #655

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • division_name

      String division_name
      division name
    • section_name

      String section_name
      section name
    • paragraph_name

      String paragraph_name
      paragraph name
    • full_name

      String full_name
      full name: division.section.paragraph
    • sequence_id

      int sequence_id
      identifier
    • is_comment

      boolean is_comment
      true if section is comment-only
    • is_free_format

      boolean is_free_format
      true if section is free-format text
    • is_defined

      boolean is_defined
      true if section is defined
  • Constructor Details

    • section_definition

      section_definition(String section_specification) throws zc390.zCobolException
      // #655 Constructor // #655 // #655 This constructor takes a definition string and decomposes it to construct the data for a new instance // #655 // #655
      Parameters:
      section_specification - source variant of section definition // #655
      Throws:
      zc390.zCobolException - if there is an issue with the source definition // #655
    • section_definition

      section_definition(String my_division_name, String my_section_name, String my_paragraph_name)
      // #655 Constructor // #655 // #655 This constructor takes an explicit division, section, and paragraph to create a default instance. // #655 The caller is to invoke the find_index method to validate the instance against the defined combinations. // #655 // #655
      Parameters:
      my_division_name - division name // #655
      my_section_name - section name // #655
      my_paragraph_name - paragraph name // #655
  • Method Details

    • find_index

      int find_index()
      // #655 find_index // #655 Input: section_definition with: // #655 Division name // #655 Section name // #655 Paragraph name // #655 program_sections (implicit) // #655 Output: index nr if section_definition entry was found. -1 if not found. // #655 // #655
      Returns:
      index of section definition; -1 if not found // #655
    • is_comment

      boolean is_comment()
      // #655 is_comment // #655 Input: -- // #655 Output: boolean is_comment property of the class instance // #655 // #655
      Returns:
      true if the section is a comment-only section; false otherwise // #655