Package org.openrdf.query.algebra

Examples of org.openrdf.query.algebra.ValueConstant


  @Override
  public ValueConstant visit(ASTTrue node, Object data)
    throws VisitorException
  {
    return new ValueConstant(valueFactory.createLiteral(true));
  }
View Full Code Here


  @Override
  public ValueConstant visit(ASTFalse node, Object data)
    throws VisitorException
  {
    return new ValueConstant(valueFactory.createLiteral(false));
  }
View Full Code Here

    for (Var var : constructVars) {
      if (var.isAnonymous() && !extElemMap.containsKey(var)) {
        ValueExpr valueExpr = null;

        if (var.hasValue()) {
          valueExpr = new ValueConstant(var.getValue());
        }
        else if (explicit) {
          // only generate bnodes in case of an explicit constructor
          valueExpr = new BNodeGenerator();
        }
View Full Code Here

      if (contextID instanceof Var) {
        contextVar = (Var)contextID;
      }
      else if (contextID instanceof ValueConstant) {
        ValueConstant vc = (ValueConstant)contextID;
        contextVar = createConstantVar(vc.getValue());
      }
      else {
        throw new IllegalArgumentException("Unexpected contextID result type: " + contextID.getClass());
      }
    }
View Full Code Here

    if (arg instanceof Var) {
      return (Var)arg;
    }
    else if (arg instanceof ValueConstant) {
      ValueConstant vc = (ValueConstant)arg;
      return createConstantVar(vc.getValue());
    }
    else {
      throw new IllegalArgumentException("Unexpected edge argument type: " + arg.getClass());
    }
  }
View Full Code Here

    if (valueExpr instanceof Var) {
      return (Var)valueExpr;
    }
    else if (valueExpr instanceof ValueConstant) {
      ValueConstant vc = (ValueConstant)valueExpr;
      return createConstantVar(vc.getValue());
    }
    else {
      throw new IllegalArgumentException("Unexpected node element result type: " + valueExpr.getClass());
    }
  }
View Full Code Here

  @Override
  public ValueConstant visit(ASTBooleanConstant node, Object data)
    throws VisitorException
  {
    return new ValueConstant(valueFactory.createLiteral(node.getValue()));
  }
View Full Code Here

  @Override
  public FunctionCall visit(ASTFunctionCall node, Object data)
    throws VisitorException
  {
    ValueConstant vc = (ValueConstant)node.getURI().jjtAccept(this, null);
    assert vc.getValue() instanceof URI;

    FunctionCall functionCall = new FunctionCall(vc.getValue().toString());

    for (ASTValueExpr argExpr : node.getArgList()) {
      functionCall.addArg((ValueExpr)argExpr.jjtAccept(this, null));
    }
View Full Code Here

  @Override
  public ValueConstant visit(ASTURI node, Object data)
    throws VisitorException
  {
    return new ValueConstant(valueFactory.createURI(node.getValue()));
  }
View Full Code Here

  @Override
  public ValueConstant visit(ASTBNode node, Object data)
    throws VisitorException
  {
    return new ValueConstant(valueFactory.createBNode(node.getID()));
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.ValueConstant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.