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;
}
Aggregations