Class DotCFG

    • Method Detail

      • fromCFG

        public static DotCFG fromCFG​(CFG source,
                                     java.lang.String title,
                                     java.util.function.Function<Statement,​java.lang.String> labelGenerator)
        Builds a DotCFG from a CFG. The label of a node representing a statement node will be composed by joining node.toString() ( Statement.toString()) with labelGenerator.apply(node) (Function.apply(Object)) through a new line.
        Parameters:
        source - the source to export into dot format
        title - the title of the graph, if any
        labelGenerator - the function used to generate extra labels
        Returns:
        the exported graph built starting from the source