blob: c3a42e3a95c455cb4ab2f868c329b609ca9ec57d [file] [log] [blame]
Yotam Harcholf25e8142013-09-09 14:30:13 -07001
2 @Override
3 public List<OFAction> getActions()throws UnsupportedOperationException {
4//:: if builder:
5 if (!this.instructionsSet)
6//:: if has_parent:
7 return parentMessage.getActions();
8//:: else:
9 return Collections.emptyList();
10//:: #endif
11//:: #endif
12 ImmutableList.Builder<OFAction> builder = ImmutableList.builder();
13 for (OFInstruction inst : this.instructions) {
14 if (inst instanceof OFInstructionApplyActions) {
15 OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
16 builder.addAll(iap.getActions());
17 }
18 }
19 return builder.build();
20 }