Package de.fraunhofer.aisec.cpg
Class TranslationResult
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.TranslationResult
-
public class TranslationResult extends java.lang.ObjectThe global (intermediate) result of the translation. ALanguageFrontendwill initially populate it and aPasscan extend it.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSOURCE_LOCATIONS_TO_FRONTEND
-
Constructor Summary
Constructors Constructor Description TranslationResult(TranslationManager translationManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getScratch()Scratch storage that can be used by passes to store additional information in this result.java.util.List<TranslationUnitDeclaration>getTranslationUnits()List of translation units.booleanisCancelled()
-
-
-
Field Detail
-
SOURCE_LOCATIONS_TO_FRONTEND
public static final java.lang.String SOURCE_LOCATIONS_TO_FRONTEND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TranslationResult
public TranslationResult(TranslationManager translationManager)
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
-
getTranslationUnits
public java.util.List<TranslationUnitDeclaration> getTranslationUnits()
List of translation units.- Returns:
- the list of translation units
-
getScratch
public java.util.Map<java.lang.String,java.lang.Object> getScratch()
Scratch storage that can be used by passes to store additional information in this result. Callers must ensure that keys are unique. It is recommended to prefix them with the class name of the Pass.- Returns:
- the scratch storage
-
-