Package com.strobel.decompiler

Examples of com.strobel.decompiler.PlainTextOutput.writeLine()


        }

        output.indent();

        if (!_dominanceFrontier.isEmpty()) {
            output.writeLine();
            output.write("DominanceFrontier: ");

            final int[] blockIndexes = new int[_dominanceFrontier.size()];

            int i = 0;
View Full Code Here


                )
            );
        }

        for (final Instruction instruction : getInstructions()) {
            output.writeLine();
            DecompilerHelpers.writeInstruction(output, instruction);
        }

        final Object userData = _userData;
View Full Code Here

        }

        final Object userData = _userData;

        if (userData != null) {
            output.writeLine();
            output.write(String.valueOf(userData));
        }

        output.unindent();
View Full Code Here

    }

    public final void export(final File path) {
        final PlainTextOutput output = new PlainTextOutput();

        output.writeLine("digraph g {");
        output.indent();

        final Set<ControlFlowEdge> edges = new LinkedHashSet<>();

        for (final ControlFlowNode node : _nodes) {
View Full Code Here

        output.indent();

        final Set<ControlFlowEdge> edges = new LinkedHashSet<>();

        for (final ControlFlowNode node : _nodes) {
            output.writeLine("\"%s\" [", nodeName(node));
            output.indent();

            output.writeLine(
                "label = \"<f0> %s\"",
                node.toString()
View Full Code Here

        for (final ControlFlowNode node : _nodes) {
            output.writeLine("\"%s\" [", nodeName(node));
            output.indent();

            output.writeLine(
                "label = \"<f0> %s\"",
                node.toString()
                    .replace("\"", "\\\"")
                    .replace("|", "\\|")
                    .replace("{", "\\{")
View Full Code Here

                    .replace("}", "\\}")
                    .replace("<", "\\<")
                    .replace(">", "\\>")
            );

            output.writeLine("shape = \"record\"");

            output.unindent();
            output.writeLine("];");

            edges.addAll(node.getIncoming());
View Full Code Here

            );

            output.writeLine("shape = \"record\"");

            output.unindent();
            output.writeLine("];");

            edges.addAll(node.getIncoming());
            edges.addAll(node.getOutgoing());

            final ControlFlowNode endFinallyNode = node.getEndFinallyNode();
View Full Code Here

            edges.addAll(node.getOutgoing());

            final ControlFlowNode endFinallyNode = node.getEndFinallyNode();

            if (endFinallyNode != null) {
                output.writeLine("\"%s\" [", nodeName(endFinallyNode));
                output.indent();

                output.writeLine(
                    "label = \"<f0> %s\"",
                    endFinallyNode.toString()
View Full Code Here

            if (endFinallyNode != null) {
                output.writeLine("\"%s\" [", nodeName(endFinallyNode));
                output.indent();

                output.writeLine(
                    "label = \"<f0> %s\"",
                    endFinallyNode.toString()
                                  .replace("\"", "\\\"")
                                  .replace("|", "\\|")
                                  .replace("{", "\\{")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.