Class JDTSourceModuleTranslator
java.lang.Object
com.ibm.wala.cast.java.translator.jdt.JDTSourceModuleTranslator
- All Implemented Interfaces:
SourceModuleTranslator
A SourceModuleTranslator whose implementation of loadAllSources() uses the PolyglotFrontEnd
pseudo-compiler to generate DOMO IR for the sources in the compile-time classpath.
- Author:
- rfuhrer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJDTSourceModuleTranslator
(AnalysisScope scope, JDTSourceLoaderImpl sourceLoader) JDTSourceModuleTranslator
(AnalysisScope scope, JDTSourceLoaderImpl sourceLoader, boolean dump) -
Method Summary
Modifier and TypeMethodDescriptionvoid
loadAllSources
(Set<ModuleEntry> modules) protected JDTJava2CAstTranslator
<JdtPosition> makeCAstTranslator
(org.eclipse.jdt.core.dom.CompilationUnit cu, org.eclipse.core.resources.IFile sourceFile, String fullPath) protected Java2IRTranslator
-
Field Details
-
dump
protected boolean dump -
sourceLoader
-
-
Constructor Details
-
JDTSourceModuleTranslator
-
JDTSourceModuleTranslator
public JDTSourceModuleTranslator(AnalysisScope scope, JDTSourceLoaderImpl sourceLoader, boolean dump)
-
-
Method Details
-
loadAllSources
- Specified by:
loadAllSources
in interfaceSourceModuleTranslator
-
makeIRTranslator
-
makeCAstTranslator
protected JDTJava2CAstTranslator<JdtPosition> makeCAstTranslator(org.eclipse.jdt.core.dom.CompilationUnit cu, org.eclipse.core.resources.IFile sourceFile, String fullPath)
-