/** * @inheritDoc */ @Override public void meet(CompareAny theOp) throws Exception { mBuffer.append("("); theOp.getArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" any "); mBuffer.append("("); mBuffer.append(renderTupleExpr(theOp.getSubQuery())); mBuffer.append(")"); mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(CompareAll theOp) throws Exception { mBuffer.append("("); theOp.getArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" all "); mBuffer.append("("); mBuffer.append(renderTupleExpr(theOp.getSubQuery())); mBuffer.append(")"); mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(CompareAny theOp) throws Exception { mBuffer.append("("); theOp.getArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" any "); mBuffer.append("("); // TODO: query render this theOp.getSubQuery().visit(this); mBuffer.append(")"); mBuffer.append(")"); }
@Override final public FunctionNode visit(ASTCompare node, Object data) throws VisitorException { final URI functionURI; switch (node.getOperator()) { case LT: functionURI = FunctionRegistry.LT; break; case GT: functionURI = FunctionRegistry.GT; break; case EQ: functionURI = FunctionRegistry.EQ; break; case LE: functionURI = FunctionRegistry.LE; break; case GE: functionURI = FunctionRegistry.GE; break; case NE: functionURI = FunctionRegistry.NE; break; default: throw new UnsupportedOperationException(node.getOperator() .getSymbol()); } return binary(node, functionURI); }
@Override final public FunctionNode visit(ASTCompare node, Object data) throws VisitorException { final URI functionURI; switch (node.getOperator()) { case LT: functionURI = FunctionRegistry.LT; break; case GT: functionURI = FunctionRegistry.GT; break; case EQ: functionURI = FunctionRegistry.EQ; break; case LE: functionURI = FunctionRegistry.LE; break; case GE: functionURI = FunctionRegistry.GE; break; case NE: functionURI = FunctionRegistry.NE; break; default: throw new UnsupportedOperationException(node.getOperator() .getSymbol()); } return binary(node, functionURI); }
/** * @inheritDoc */ @Override public void meet(CompareAll theOp) throws Exception { mBuffer.append("("); theOp.getArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" all "); mBuffer.append("("); // TODO: query render this theOp.getSubQuery().visit(this); mBuffer.append(")"); mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Compare theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Compare theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
@Override public String getSignature() { return super.getSignature() + " (" + operator.getSymbol() + ")"; }
@Override public String getSignature() { return super.getSignature() + " (" + operator.getSymbol() + ")"; }
@Override public String getSignature() { return super.getSignature() + " (" + operator.getSymbol() + ")"; }
@Override public void meet(final Compare n) { final QueryModelNode p = n.getParentNode(); final boolean par = p instanceof Not || p instanceof MathExpr; emitIf(par, "(").emit(n.getLeftArg()).emit(" ").emit(n.getOperator().getSymbol()) .emit(" ").emit(n.getRightArg()).emitIf(par, ")"); }
@Override public void meet(final Compare n) { final QueryModelNode p = n.getParentNode(); final boolean par = p instanceof Not || p instanceof MathExpr; emitIf(par, "(").emit(n.getLeftArg()).emit(" ").emit(n.getOperator().getSymbol()) .emit(" ").emit(n.getRightArg()).emitIf(par, ")"); }