/** * @inheritDoc */ @Override public void meet(Bound theOp) throws Exception { mBuffer.append(" bound("); theOp.getArg().visit(this); mBuffer.append(")"); }
@Override public boolean equals(Object other) { if (other instanceof Bound) { Bound o = (Bound)other; return arg.equals(o.getArg()); } return false; }
/** * @inheritDoc */ @Override public void meet(Bound theOp) throws Exception { mBuffer.append(" bound("); theOp.getArg().visit(this); mBuffer.append(")"); }
@Override public void meet(Bound node) throws RuntimeException { ValueExpr arg = node.getArg(); builder.append("("); optypes.push(ValueType.NODE); arg.visit(this); optypes.pop(); builder.append(" IS NOT NULL)"); }
public Value evaluate(Bound node, BindingSet bindings) throws QueryEvaluationException { try { Value argValue = evaluate(node.getArg(), bindings); return BooleanLiteral.valueOf(argValue != null); } catch (ValueExprEvaluationException e) { return BooleanLiteral.FALSE; } }
@Override public void meet(final Bound n) { emit("BOUND(").emit(n.getArg()).emit(")"); }
@Override public void meet(final Bound n) { emit("BOUND(").emit(n.getArg()).emit(")"); }
@Override public Bound clone() { Bound clone = (Bound)super.clone(); clone.setArg(getArg().clone()); return clone; } }
@Override public void meet(Bound node) throws UnsupportedRdbmsOperatorException { result = not(isNull(new RefIdColumn(node.getArg()))); }
@Override public void meet(Bound bound) { super.meet(bound); if (bound.getArg().hasValue()) { // variable is always bound bound.replaceWith(new ValueConstant(BooleanLiteral.TRUE)); } }
@Override public void meet(Bound node) throws RDFHandlerException { Resource currentSubj = subject; flushPendingStatement(); handler.handleStatement(valueFactory.createStatement(subject, RDF.TYPE, SP.BOUND)); predicate = SP.ARG1_PROPERTY; node.getArg().visit(this); subject = currentSubj; predicate = null; }