public abstract class CAstAbstractModuleLoader extends CAstAbstractLoader
Module
s. Subclasses provide the CAst / IR
translators appropriate for the language.cha, parent, types
Constructor and Description |
---|
CAstAbstractModuleLoader(IClassHierarchy cha) |
CAstAbstractModuleLoader(IClassHierarchy cha,
IClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishTranslation()
subclasses should override to perform actions after CAst and IR have been
generated.
|
protected File |
getLocalFile(SourceModule M) |
protected abstract TranslatorToCAst |
getTranslatorToCAst(CAst ast,
SourceModule M)
create the appropriate CAst translator for the language and source module
|
void |
init(List<Module> modules)
Initialize internal data structures.
|
protected abstract TranslatorToIR |
initTranslator()
create the appropriate IR translator for the language
|
protected abstract boolean |
shouldTranslate(CAstEntity entity)
should IR be generated for entity?
|
addMessage, addMessage, clearMessages, getMessages, getModulesWithParseErrors, getModulesWithWarnings, getName, getNumberOfClasses, getNumberOfMethods, getParent, getSource, getSource, getSourceFileName, getSourceFileName, iterateAllClasses, lookupClass, lookupClass, removeAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstructionFactory, getLanguage, getReference
public CAstAbstractModuleLoader(IClassHierarchy cha, IClassLoader parent)
public CAstAbstractModuleLoader(IClassHierarchy cha)
protected abstract TranslatorToCAst getTranslatorToCAst(CAst ast, SourceModule M) throws IOException
IOException
protected abstract boolean shouldTranslate(CAstEntity entity)
protected abstract TranslatorToIR initTranslator()
protected File getLocalFile(SourceModule M) throws IOException
IOException
protected void finishTranslation()
public void init(List<Module> modules)
IClassLoader