@Override | |
public List<OFAction> getActions()throws UnsupportedOperationException { | |
//:: if builder: | |
if (!this.instructionsSet) | |
//:: if has_parent: | |
return parentMessage.getActions(); | |
//:: else: | |
return Collections.emptyList(); | |
//:: #endif | |
//:: #endif | |
for (OFInstruction inst : this.instructions) { | |
if (inst instanceof OFInstructionApplyActions) { | |
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst; | |
return iap.getActions(); | |
} | |
} | |
return Collections.emptyList(); | |
} |