SelectorName ancestorSelector = condition.ancestorSelectorName();
// The ancestor needs to be on the left side of the join ...
swapChildren = !join.getFirstChild().getSelectors().contains(ancestorSelector);
} else if (joinCondition instanceof ChildNodeJoinCondition) {
ChildNodeJoinCondition condition = (ChildNodeJoinCondition)joinCondition;
SelectorName parentSelector = condition.parentSelectorName();
// The ancestor needs to be on the left side of the join ...
swapChildren = !join.getFirstChild().getSelectors().contains(parentSelector);
}
JoinType joinType = join.getProperty(Property.JOIN_TYPE, JoinType.class);