Class GlobalSection


  • public class GlobalSection
    extends Section
    • Constructor Detail

      • GlobalSection

        public GlobalSection()
        Construct a new, empty section instance.
      • GlobalSection

        public GlobalSection​(int estimatedSize)
        Construct a new, empty section instance.
        Parameters:
        estimatedSize - the estimated number of globals to reserve space for
    • Method Detail

      • globals

        public Global[] globals()
      • globalCount

        public int globalCount()
      • getGlobal

        public Global getGlobal​(int idx)
      • addGlobal

        public int addGlobal​(Global global)
        Add a global variable definition to this section.
        Parameters:
        global - the global to add to this section (must not be null)
        Returns:
        the index of the newly-added global