use of soot.baf.PlaceholderInst in project soot by Sable.
the class JTableSwitchStmt method convertToBaf.
public void convertToBaf(JimpleToBafContext context, List<Unit> out) {
List<PlaceholderInst> targetPlaceholders = new ArrayList<PlaceholderInst>();
((ConvertToBaf) getKey()).convertToBaf(context, out);
for (Unit target : getTargets()) {
targetPlaceholders.add(Baf.v().newPlaceholderInst(target));
}
Unit u = Baf.v().newTableSwitchInst(Baf.v().newPlaceholderInst(getDefaultTarget()), lowIndex, highIndex, targetPlaceholders);
u.addAllTagsOf(this);
out.add(u);
}
use of soot.baf.PlaceholderInst in project soot by Sable.
the class JLookupSwitchStmt method convertToBaf.
public void convertToBaf(JimpleToBafContext context, List<Unit> out) {
List<PlaceholderInst> targetPlaceholders = new ArrayList<PlaceholderInst>();
((ConvertToBaf) getKey()).convertToBaf(context, out);
for (Unit target : getTargets()) {
targetPlaceholders.add(Baf.v().newPlaceholderInst(target));
}
Unit u = Baf.v().newLookupSwitchInst(Baf.v().newPlaceholderInst(getDefaultTarget()), getLookupValues(), targetPlaceholders);
u.addAllTagsOf(this);
out.add(u);
}
Aggregations