Class ImportStateCache


  • public class ImportStateCache
    extends java.lang.Object
    • Method Detail

      • dispose

        public void dispose()
      • getTVectNamespace

        public Namespace getTVectNamespace()
      • getNamespace

        public Namespace getNamespace​(ImportedLibrary library)
        Returns a namespace for the given imported library.
        Parameters:
        library - the imported library
        Returns:
        a namespace for the given imported library
      • getMemoryBlockForSection

        public MemoryBlock getMemoryBlockForSection​(SectionHeader section)
        Returns the memory block for the given section. Generally sections do not specify a preferred address and are not named. This map provides a way to lookup the block that was created for the given section.
        Parameters:
        section - the PEF section header
        Returns:
        the memory block for the given section
      • getSymbol

        public Symbol getSymbol​(java.lang.String symbolName,
                                ImportedLibrary library)
        Returns the symbol object with the given name in the specified library.
        Parameters:
        symbolName - the desired symbol's name
        library - the desired library
        Returns:
        the symbol object with the given name in the specified library
      • createLibrarySymbol

        public boolean createLibrarySymbol​(ImportedLibrary library,
                                           java.lang.String symbolName,
                                           Address address)
      • getTocAddress

        public Address getTocAddress()
      • setTocAddress

        public void setTocAddress​(Address tocAddress)