Package de.fraunhofer.aisec.cpg.passes
Interface Pass
-
- All Superinterfaces:
java.util.function.Consumer<TranslationResult>
- All Known Implementing Classes:
CallResolver,ControlFlowGraphPass,EvaluationOrderGraphPass,FilenameMapper,ImportResolver,TypeHierarchyResolver,VariableUsageResolver
public interface Pass extends java.util.function.Consumer<TranslationResult>
Represents a class that enhances the graph before it is persisted.Passes are expected to mutate the
TranslationResult.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidcleanup()default TranslationUnitDeclarationcreateUnknownTranslationUnit(TranslationResult result)LanguageFrontendgetLang()Deprecated.voidsetLang(LanguageFrontend lang)Deprecated.
-
-
-
Method Detail
-
getLang
@Deprecated LanguageFrontend getLang()
Deprecated.We do not want the passes to depend on a language frontend- Returns:
- might be null, as it is not designed to be used anymore
-
setLang
@Deprecated void setLang(LanguageFrontend lang)
Deprecated.We do not want the passes to depend on a language frontend- Parameters:
lang-
-
cleanup
void cleanup()
-
createUnknownTranslationUnit
default TranslationUnitDeclaration createUnknownTranslationUnit(TranslationResult result)
-
-