}
Operator testOP = null;
if (numberJoinPartner > 1) {
final Join joinOp = new Join();
int j = 0;
for (int i = 0; i < node.jjtGetNumChildren(); i++) {
final Node n = node.jjtGetChild(i);
if (n instanceof ASTUnionConstraint
|| n instanceof ASTGraphConstraint) {
testOP = (Operator) n.jjtAccept(
this, data);
if (testOP != null) {
joinOp.addSucceedingOperator(new OperatorIDTuple<Operator>(
testOP, j));
}
j++;
}
}
if (rdfTermToJoin.size() > 0) {
final TripleContainer opContainer = new TripleContainer(
rdfTermToJoin);
joinOp.addSucceedingOperator(new OperatorIDTuple<Operator>(
opContainer, j));
}
testOP = joinOp;
} else { // There should be only triple patterns or one