Yotam Harchol | f25e814 | 2013-09-09 14:30:13 -0700 | [diff] [blame] | 1 | |
| 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 |
Yotam Harchol | f25e814 | 2013-09-09 14:30:13 -0700 | [diff] [blame] | 12 | for (OFInstruction inst : this.instructions) { |
| 13 | if (inst instanceof OFInstructionApplyActions) { |
| 14 | OFInstructionApplyActions iap = (OFInstructionApplyActions)inst; |
Yotam Harchol | a9305c2 | 2013-09-09 14:57:19 -0700 | [diff] [blame] | 15 | return iap.getActions(); |
Yotam Harchol | f25e814 | 2013-09-09 14:30:13 -0700 | [diff] [blame] | 16 | } |
| 17 | } |
Yotam Harchol | a9305c2 | 2013-09-09 14:57:19 -0700 | [diff] [blame] | 18 | return Collections.emptyList(); |
Yotam Harchol | f25e814 | 2013-09-09 14:30:13 -0700 | [diff] [blame] | 19 | } |