Class ProgramAddressFactory

    • Constructor Detail

      • ProgramAddressFactory

        public ProgramAddressFactory​(Language language,
                                     CompilerSpec compilerSpec)
    • Method Detail

      • getAddress

        public Address getAddress​(int spaceID,
                                  long offset)
        Description copied from interface: AddressFactory
        Get an address using the addressSpace with the given id and having the given offset.
        Specified by:
        getAddress in interface AddressFactory
        Overrides:
        getAddress in class DefaultAddressFactory
        Parameters:
        spaceID - the id of the address space to use to create the new address.
        offset - the offset of the new address to be created.
        Returns:
        the new address.
      • renameOverlaySpace

        protected java.lang.String renameOverlaySpace​(java.lang.String oldOverlaySpaceName,
                                                      java.lang.String newName)
        Rename overlay with preferred newName. Actual name used will be returned and may differ from specified newName to ensure validity and avoid duplication.
        Overrides:
        renameOverlaySpace in class DefaultAddressFactory
        Parameters:
        oldOverlaySpaceName - the existing overlay address space name
        newName - the preferred new name of the overlay address space. This name may be modified to produce a valid overlay space name to avoid duplication.
        Returns:
        new name applied to existing overlay space