Class CAstAbstractModuleLoader

  • All Implemented Interfaces:
    IClassLoader

    public abstract class CAstAbstractModuleLoader
    extends CAstAbstractLoader
    abstract class loader that performs CAst and IR generation for relevant entities in a list of Modules. Subclasses provide the CAst / IR translators appropriate for the language.
    • Method Detail

      • shouldTranslate

        protected abstract boolean shouldTranslate​(CAstEntity entity)
        should IR be generated for entity?
      • initTranslator

        protected abstract TranslatorToIR initTranslator()
        create the appropriate IR translator for the language
      • finishTranslation

        protected void finishTranslation()
        subclasses should override to perform actions after CAst and IR have been generated. by default, do nothing
      • init

        public void init​(List<Module> modules)
        Description copied from interface: IClassLoader
        Initialize internal data structures.