Yotam Harchol | f25e814 | 2013-09-09 14:30:13 -0700 | [diff] [blame^] | 1 | |
2 | @Override | ||||
3 | public List<OFAction> getActions()throws UnsupportedOperationException { | ||||
4 | ImmutableList.Builder<OFAction> builder = ImmutableList.builder(); | ||||
5 | for (OFInstruction inst : this.instructions) { | ||||
6 | if (inst instanceof OFInstructionApplyActions) { | ||||
7 | OFInstructionApplyActions iap = (OFInstructionApplyActions)inst; | ||||
8 | builder.addAll(iap.getActions()); | ||||
9 | } | ||||
10 | } | ||||
11 | return builder.build(); | ||||
12 | } |