Interface CodeSection


public interface CodeSection
Interface used for strongly typed AbstractCodeWriter section values.
  • Method Summary

    Modifier and Type
    Method
    Description
    forName(String sectionName)
    Creates a CodeSection that returns the given sectionName.
    default String
    Gets the name of the section.
  • Method Details

    • sectionName

      default String sectionName()
      Gets the name of the section.

      This class will return the canonical class of the implementing class by default.

      Returns:
      Returns the section name.
    • forName

      static CodeSection forName(String sectionName)
      Creates a CodeSection that returns the given sectionName.
      Parameters:
      sectionName - Section name to provide when sectionName is called on the created CodeSection.
      Returns:
      Returns CodeSection that uses the provided name.