public abstract class CAstAbstractModuleLoader extends CAstAbstractLoader
Modules. Subclasses provide the CAst / IR translators appropriate for the language.| Modifier and Type | Class and Description |
|---|---|
class |
CAstAbstractModuleLoader.CoreClass |
class |
CAstAbstractModuleLoader.DynamicCodeBody |
class |
CAstAbstractModuleLoader.DynamicMethodObject |
cha, parent, types| Constructor and Description |
|---|
CAstAbstractModuleLoader(com.ibm.wala.ipa.cha.IClassHierarchy cha) |
CAstAbstractModuleLoader(com.ibm.wala.ipa.cha.IClassHierarchy cha,
com.ibm.wala.classLoader.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 java.io.File |
getLocalFile(com.ibm.wala.classLoader.SourceModule M) |
protected abstract TranslatorToCAst |
getTranslatorToCAst(CAst ast,
com.ibm.wala.classLoader.ModuleEntry M,
java.util.List<com.ibm.wala.classLoader.Module> modules)
create the appropriate CAst translator for the language and source module
|
void |
init(java.util.List<com.ibm.wala.classLoader.Module> modules) |
protected abstract TranslatorToIR |
initTranslator(java.util.Set<com.ibm.wala.util.collections.Pair<CAstEntity,com.ibm.wala.classLoader.ModuleEntry>> topLevelEntities)
create the appropriate IR translator for the language
|
protected abstract boolean |
shouldTranslate(CAstEntity entity)
should IR be generated for entity?
|
addMessage, addMessages, clearMessages, getMessages, getModulesWithParseErrors, getModulesWithWarnings, getName, getNumberOfClasses, getNumberOfMethods, getParent, getSource, getSource, getSourceFileName, getSourceFileName, iterateAllClasses, lookupClass, lookupClass, removeAllpublic CAstAbstractModuleLoader(com.ibm.wala.ipa.cha.IClassHierarchy cha,
com.ibm.wala.classLoader.IClassLoader parent)
public CAstAbstractModuleLoader(com.ibm.wala.ipa.cha.IClassHierarchy cha)
protected abstract TranslatorToCAst getTranslatorToCAst(CAst ast, com.ibm.wala.classLoader.ModuleEntry M, java.util.List<com.ibm.wala.classLoader.Module> modules) throws java.io.IOException
modules - all modules in the analysisjava.io.IOExceptionprotected abstract boolean shouldTranslate(CAstEntity entity)
protected abstract TranslatorToIR initTranslator(java.util.Set<com.ibm.wala.util.collections.Pair<CAstEntity,com.ibm.wala.classLoader.ModuleEntry>> topLevelEntities)
topLevelEntities - the set of all modules being translatedprotected java.io.File getLocalFile(com.ibm.wala.classLoader.SourceModule M)
throws java.io.IOException
java.io.IOExceptionprotected void finishTranslation()
public void init(java.util.List<com.ibm.wala.classLoader.Module> modules)