Package lupos.engine.operators.singleinput

Examples of lupos.engine.operators.singleinput.NotBoundException


        this.checkFilterConstraint(n.jjtGetChild(1), variables);
      } catch (final NotBoundException nbe) {
        deleteRightOperand = true;
      }
      if (deleteLeftOperand && deleteRightOperand) {
        throw new NotBoundException(
            "Both operands of an Or-Operator in a filter throw NotBoundException!");
      }
      if (deleteLeftOperand) {
        n.jjtGetParent().replaceChild2(n, n.jjtGetChild(1));
        n.jjtGetChild(1).jjtSetParent(n.jjtGetParent());
      }
      if (deleteRightOperand) {
        n.jjtGetParent().replaceChild2(n, n.jjtGetChild(0));
        n.jjtGetChild(0).jjtSetParent(n.jjtGetParent());
      }
    } else if (n instanceof lupos.sparql1_1.ASTVar) {
      if (!variables.contains(((lupos.sparql1_1.ASTVar) n).getName())) {
        throw new NotBoundException("Variable "
            + ((lupos.sparql1_1.ASTVar) n).getName() + " not bound");
      }
    } else {
      if(!(n instanceof ASTExists || n instanceof ASTNotExists || n instanceof ASTBoundFuncNode)){
        for(int i=0; i<n.jjtGetNumChildren(); i++){
View Full Code Here


    // nothing to release...
  }

  @Override
  public Object evaluate(final ASTOrNode node, final Bindings b, final Map<Node, Object> d) throws NotBoundException, TypeErrorException {
    NotBoundException _exceptionNB = null;
    TypeErrorException _exceptionTE = null;
    try {
      if (Helper.booleanEffectiveValue(node.jjtGetChild(0).accept(this, b, d))) {
        return true;
      }
View Full Code Here

    Literal l = b.get(new Variable(node.getName()));
    if (l == null) {
      l = b.get(new VariableInInferenceRule(node.getName()));
    }
    if (l == null) {
      throw new NotBoundException("Variable "
          + node.getName()
          + " is not bound!");
    } else {
      return l;
    }
View Full Code Here

TOP

Related Classes of lupos.engine.operators.singleinput.NotBoundException

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.