public Value evaluate(ValueConstant valueConstant, BindingSet bindings) throws ValueExprEvaluationException, QueryEvaluationException { return valueConstant.getValue(); }
@Override public ValueConstant visit(ASTFalse node, Object data) throws VisitorException { return new ValueConstant(valueFactory.createLiteral(false)); }
public Value evaluate(ValueConstant valueConstant, BindingSet bindings) throws ValueExprEvaluationException, QueryEvaluationException { return valueConstant.getValue(); }
@Override public ValueConstant visit(ASTTrue node, Object data) throws VisitorException { return new ValueConstant(valueFactory.createLiteral(true)); }
@Override public Create clone() { Create clone = new Create(); clone.setSilent(isSilent()); if (getGraph() != null) { clone.setGraph(getGraph().clone()); } return clone; }
@Override public int hashCode() { int result = silent ? 1 : 0; if (graph != null) { result ^= graph.hashCode(); } return result; }
/** * Evaluate a {@link ValueConstant} query model node. * @param valueConstant * @param bindings the set of named value bindings * @return the {@link Value} of {@code valueConstant} * @throws ValueExprEvaluationException * @throws QueryEvaluationException */ private Value evaluate(ValueConstant valueConstant, BindingSet bindings) throws ValueExprEvaluationException, QueryEvaluationException { return valueConstant.getValue(); }
@Override public ValueConstant visit(ASTTrue node, Object data) throws VisitorException { return new ValueConstant(valueFactory.createLiteral(true)); }
@Override public Add clone() { Add clone = new Add(); clone.setSilent(isSilent()); if (getSourceGraph() != null) { clone.setSourceGraph(getSourceGraph().clone()); } return clone; }
@Override public boolean equals(Object other) { if (other instanceof ValueConstant) { ValueConstant o = (ValueConstant)other; return value.equals(o.getValue()); } return false; }
@Override public ValueConstant visit(ASTFalse node, Object data) throws VisitorException { return new ValueConstant(valueFactory.createLiteral(false)); }
@Override public Copy clone() { Copy clone = new Copy(); clone.setSilent(isSilent()); if (getSourceGraph() != null) { clone.setSourceGraph(getSourceGraph().clone()); } return clone; }
@Override public boolean equals(Object other) { if (other instanceof ValueConstant) { ValueConstant o = (ValueConstant)other; return value.equals(o.getValue()); } return false; }
@Override public ValueConstant visit(ASTTrue node, Object data) throws VisitorException { return new ValueConstant(valueFactory.createLiteral(true)); }
@Override public Copy clone() { Copy clone = new Copy(); clone.setSilent(isSilent()); if (getSourceGraph() != null) { clone.setSourceGraph(getSourceGraph().clone()); } return clone; }