* @return The end line number, or -1 if could not be determined
*/
public int getEndLineNumber() {
int ret=-1;
ActivityInterface parent=getParent();
if (parent != null) {
int index=parent.getSubActivities().indexOf(this);
if (index != -1) {
if (index < (parent.getSubActivities().size()-1)) {
ActivityInterface other=parent.getSubActivities().get(index+1);
ret = other.getStartLineNumber()-1;
} else {
ret = parent.getEndLineNumber();
}
}
}