Class ImportSection


  • public class ImportSection
    extends Section
    • Constructor Detail

      • ImportSection

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

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

      • importCount

        public int importCount()
      • getImport

        public Import getImport​(int idx)
      • addImport

        public int addImport​(Import import_)
        Add an import definition to this section.
        Parameters:
        import_ - the import to add to this section (must not be null)
        Returns:
        the index of the newly-added import