blob: ce719810f657b907e96b322b8d6787dab6ca4b68 [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
Yotam Harcholf25e8142013-09-09 14:30:13 -070012 for (OFInstruction inst : this.instructions) {
13 if (inst instanceof OFInstructionApplyActions) {
14 OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
Yotam Harchola9305c22013-09-09 14:57:19 -070015 return iap.getActions();
Yotam Harcholf25e8142013-09-09 14:30:13 -070016 }
17 }
Yotam Harchola9305c22013-09-09 14:57:19 -070018 return Collections.emptyList();
Yotam Harcholf25e8142013-09-09 14:30:13 -070019 }