Search in sources :

Example 1 with BlockSerializable

use of org.candle.decompiler.intermediate.code.BlockSerializable in project candle-decompiler by bradsdavis.

the class IntermediateLabelProvider method getVertexName.

@Override
public String getVertexName(AbstractIntermediate vertex) {
    String line = StringUtils.replace(vertex.getInstruction().getPosition() + " : " + vertex.toString(), "\"", "'");
    if (vertex instanceof BlockSerializable) {
        BlockSerializable block = (BlockSerializable) vertex;
        BlockRange range = block.getBlockRange();
        line += range.toString();
    }
    line = StringUtils.replace(line, "\n", "  ->  ");
    line = StringUtils.replace(line, ";", " | ");
    return line;
}
Also used : BlockRange(org.candle.decompiler.intermediate.code.BlockRange) BlockSerializable(org.candle.decompiler.intermediate.code.BlockSerializable)

Aggregations

BlockRange (org.candle.decompiler.intermediate.code.BlockRange)1 BlockSerializable (org.candle.decompiler.intermediate.code.BlockSerializable)1