Interface AssemblerBuilder

  • All Known Implementing Classes:
    SleighAssemblerBuilder

    public interface AssemblerBuilder
    An interface to build an assembler for a given language
    • Method Detail

      • getLanguageID

        LanguageID getLanguageID()
        Get the ID of the language for which this instance builds an assembler
        Returns:
        the language ID
      • getLanguage

        Language getLanguage()
        Get the language for which this instance builds an assembler
        Returns:
        the language
      • getAssembler

        Assembler getAssembler​(AssemblySelector selector)
        Build an assembler with the given selector callback
        Parameters:
        selector - the selector callback
        Returns:
        the built assembler
      • getAssembler

        Assembler getAssembler​(AssemblySelector selector,
                               Program program)
        Build an assembler with the given selector callback and program binding
        Parameters:
        selector - the selector callback
        program - the bound program
        Returns:
        the built assembler