Class ECJSourceModuleTranslator
java.lang.Object
com.ibm.wala.cast.java.translator.jdt.ecj.ECJSourceModuleTranslator
- 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
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionECJSourceModuleTranslator
(AnalysisScope scope, ECJSourceLoaderImpl sourceLoader) ECJSourceModuleTranslator
(AnalysisScope scope, ECJSourceLoaderImpl sourceLoader, boolean dump) -
Method Summary
Modifier and TypeMethodDescriptionvoid
loadAllSources
(Set<ModuleEntry> modules) makeCAstTranslator
(org.eclipse.jdt.core.dom.CompilationUnit cu, String fullPath) protected Java2IRTranslator
-
Field Details
-
dump
protected boolean dump -
sourceLoader
-
-
Constructor Details
-
ECJSourceModuleTranslator
-
ECJSourceModuleTranslator
public ECJSourceModuleTranslator(AnalysisScope scope, ECJSourceLoaderImpl sourceLoader, boolean dump)
-
-
Method Details
-
loadAllSources
- Specified by:
loadAllSources
in interfaceSourceModuleTranslator
-
makeIRTranslator
-
makeCAstTranslator
protected JDTJava2CAstTranslator<CAstSourcePositionMap.Position> makeCAstTranslator(org.eclipse.jdt.core.dom.CompilationUnit cu, String fullPath)
-