blob: 3b56d5281b6cdd7952546f8008e2bf1643316bf8 [file] [log] [blame]
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
ImmutableList.Builder<OFAction> builder = ImmutableList.builder();
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
builder.addAll(iap.getActions());
}
}
return builder.build();
}