Package com.strobel.decompiler

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


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

        output.unindent();

        return output.toString();
    }

    // <editor-fold defaultstate="collapsed" desc="Iterators">
View Full Code Here


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

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

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

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

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

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

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

                edges.addAll(endFinallyNode.getIncoming());
                edges.addAll(endFinallyNode.getOutgoing());
                edges.add(new ControlFlowEdge(node, endFinallyNode, JumpType.EndFinally));
View Full Code Here

            final ControlFlowNode to = edge.getTarget();

            output.writeLine("\"%s\":f0 -> \"%s\":f0 [", nodeName(from), nodeName(to));
            output.indent();
            output.writeLine("label = \"%s\"", edge.getType());
            output.unindent();
            output.writeLine("];");
        }

        output.unindent();
        output.writeLine("}");
View Full Code Here

            output.writeLine("label = \"%s\"", edge.getType());
            output.unindent();
            output.writeLine("];");
        }

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

        try (final OutputStreamWriter out = new FileWriter(path)) {
            out.write(output.toString());
        }
View Full Code Here

                escapeGraphViz(node.toString())
            );

            output.writeLine(", shape = \"box\"");

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

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

                    escapeGraphViz(endFinallyNode.toString())
                );

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

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

                edges.addAll(endFinallyNode.getIncoming());
                edges.addAll(endFinallyNode.getOutgoing());
//                edges.add(new ControlFlowEdge(node, endFinallyNode, JumpType.EndFinally));
View Full Code Here

                default:
                    output.writeLine("label = \"%s\"", edge.getType());
                    break;
            }

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

        output.unindent();
        output.writeLine("}");
View Full Code Here

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

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

        try (final OutputStreamWriter out = new FileWriter(path)) {
            out.write(output.toString());
        }
View Full Code Here

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

        output.unindent();

        return output.toString();
    }

    @Override
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.