Package de.fraunhofer.aisec.cpg
Class TranslationResult
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.TranslationResult
-
- All Implemented Interfaces:
Persistable,IVisitable<Node>
public class TranslationResult extends Node
The 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()-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addAnnotations, addNextCFG, addNextCFG, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, equals, getAnnotations, getArgumentIndex, getCode, getFile, getId, getLocation, getName, getNextCFG, getNextDFG, getNextEOG, getNextEOGProperties, getNextEOGPropertyEdge, getPrevDFG, getPrevEOG, getPrevEOGProperties, getTypedefs, hashCode, isDummy, isImplicit, removeNextDFG, removePrevDFG, removePrevEOGEntries, removePrevEOGEntry, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setLocation, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setPrevEOGProperties, setTypedefs, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
-
-
-
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
-
-