@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { if (arg != null) { arg.visit(visitor); } }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { for(ValueExpr arg: args) { arg.visit(visitor); } }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { super.visitChildren(visitor); if (flagsArg != null) { flagsArg.visit(visitor); } }
private void unaryMeet(String theOpStr, UnaryValueOperator theOp) throws Exception { mBuffer.append(" ").append(theOpStr).append("("); theOp.getArg().visit(this); mBuffer.append(")"); } }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { if (condition != null) { condition.visit(visitor); } super.visitChildren(visitor); }
@Override public void meet(Min node) throws RuntimeException { builder.append("MIN("); optypes.push(ValueType.DOUBLE); node.getArg().visit(this); optypes.pop(); builder.append(")"); }
private void unaryMeet(String theOpStr, UnaryValueOperator theOp) throws Exception { mBuffer.append(" ").append(theOpStr).append("("); theOp.getArg().visit(this); mBuffer.append(")"); } }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { for (ValueExpr arg : args) { arg.visit(visitor); } super.visitChildren(visitor); }
@Override public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X { condition.visit(visitor); super.visitChildren(visitor); }
public SqlExpr createHashExpr(ValueExpr expr) throws UnsupportedRdbmsOperatorException { result = null; if (expr == null) return new SqlNull(); expr.visit(this); if (result == null) return new SqlNull(); return result; }
public SqlExpr createBNodeExpr(ValueExpr expr) throws UnsupportedRdbmsOperatorException { result = null; if (expr == null) return new SqlNull(); expr.visit(this); if (result == null) return new SqlNull(); return result; }
public SqlExpr createLanguageExpr(ValueExpr expr) throws UnsupportedRdbmsOperatorException { result = null; if (expr == null) return new SqlNull(); expr.visit(this); if (result == null) return new SqlNull(); return result; }
public SqlExpr createZonedExpr(ValueExpr expr) throws UnsupportedRdbmsOperatorException { result = null; if (expr == null) return new SqlNull(); expr.visit(this); if (result == null) return new SqlNull(); return result; }
@Override public void meet(FunctionCall node) throws RuntimeException { NativeFunction nf = NativeFunctionRegistry.getInstance().get(node.getURI()); if(node.getArgs().size() > 0 && nf.getReturnType() == ValueType.STRING) { node.getArgs().get(0).visit(this); } // otherwise stop here, the function call hides the type and language anyways }
@Override public void meet(Filter node) { FilterVarReNamer fvr = new FilterVarReNamer(varChanges, valMap); node.getCondition().visit(fvr); node.getArg().visit(this); }
@Override public void meet(Lang node) throws RDFHandlerException { Resource currentSubj = subject; flushPendingStatement(); handler.handleStatement(valueFactory.createStatement(subject, RDF.TYPE, SP.LANG)); predicate = SP.ARG1_PROPERTY; node.getArg().visit(this); subject = currentSubj; predicate = null; }
@Override public void meet(IsNumeric node) throws RDFHandlerException { Resource currentSubj = subject; flushPendingStatement(); handler.handleStatement(valueFactory.createStatement(subject, RDF.TYPE, SP.IS_NUMERIC)); predicate = SP.ARG1_PROPERTY; node.getArg().visit(this); subject = currentSubj; predicate = null; }