Examples of InExpression


Examples of com.puppetlabs.geppetto.pp.InExpression

        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.IN_EXPRESSION: {
        InExpression inExpression = (InExpression) theEObject;
        T result = caseInExpression(inExpression);
        if(result == null)
          result = caseBinaryOpExpression(inExpression);
        if(result == null)
          result = caseBinaryExpression(inExpression);
View Full Code Here

Examples of net.sf.jsqlparser.expression.operators.relational.InExpression

          {if (true) return result;}
    throw new Error("Missing return statement in function");
  }

  final public Expression InExpression() throws ParseException {
        InExpression result = new InExpression();
        ItemsList itemsList = null;
        Expression leftExpression = null;
    leftExpression = SimpleExpression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case K_NOT:
      jj_consume_token(K_NOT);
               result.setNot(true);
      break;
    default:
      jj_la1[89] = jj_gen;
      ;
    }
    jj_consume_token(K_IN);
    jj_consume_token(79);
    if (jj_2_19(2147483647)) {
      itemsList = SubSelect();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case K_NULL:
      case K_CASE:
      case K_REPLACE:
      case S_DOUBLE:
      case S_INTEGER:
      case S_IDENTIFIER:
      case S_CHAR_LITERAL:
      case S_QUOTED_IDENTIFIER:
      case 79:
      case 83:
      case 94:
      case 95:
      case 98:
      case 100:
      case 101:
      case 102:
        itemsList = SimpleExpressionList();
        break;
      default:
        jj_la1[90] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
    jj_consume_token(80);
                result.setLeftExpression(leftExpression);
                result.setItemsList(itemsList);
                {if (true) return result;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

Examples of net.sf.jsqlparser.expression.operators.relational.InExpression

    public void visit(InExpression inExpression) {
        Expression left = qualify(session, tableAliases, inExpression.getLeftExpression());
        ItemsList itemsList = ItemsListQualifier.qualify(session, tableAliases,
                inExpression.getItemsList());

        InExpression qualified = new InExpression();
        qualified.setLeftExpression(left);
        qualified.setItemsList(itemsList);
        this._qualifiedExpression = qualified;
    }
View Full Code Here

Examples of org.apache.pig.Expression.InExpression

                break;
            case OP_BETWEEN:
                BetweenExpression between = (BetweenExpression) rhs;
                builder.between(getColumnName(lhs), getSearchArgObjValue(between.getLower()),  getSearchArgObjValue(between.getUpper()));
            case OP_IN:
                InExpression in = (InExpression) rhs;
                builder.in(getColumnName(lhs), getSearchArgObjValues(in.getValues()).toArray());
            default:
                throw new RuntimeException("Unsupported binary expression type: " + expr.getOpType() + " in " + expr);
            }
        } else if (expr instanceof UnaryExpression) {
            Expression unaryExpr = ((UnaryExpression) expr).getExpression();
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.expression.InExpression

            if (useInExpression)
            {
                // Return "elem IN (val1, val2, ...)"
                SQLExpression[] exprs = (collElementExprs != null ?
                        collElementExprs.toArray(new SQLExpression[collElementExprs.size()]) : null);
                return new InExpression(elemExpr, exprs);
            }
            else
            {
                // Return "elem == val1 || elem == val2 || elem == val3 ..."
                BooleanExpression bExpr = null;
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.InExpression

    if (stateObject.isDecorated()) {
      toText(stateObject);
    }
    else {
      InExpression expression = stateObject.getExpression();

      if (stateObject.hasStateObject()) {
        stateObject.getStateObject().accept(this);
        writer.append(SPACE);
      }

      // 'NOT'
      if (stateObject.hasNot()) {
        appendIdentifier((expression != null) ? expression.getActualNotIdentifier() : NOT, NOT);
        writer.append(SPACE);
      }

      // 'IN'
      appendIdentifier((expression != null) ? expression.getActualInIdentifier() : IN, IN);

      if (!stateObject.isSingleInputParameter()) {
        writer.append(LEFT_PARENTHESIS);
      }
      else if (shouldOutput(expression) || expression.hasSpaceAfterIn()) {
        writer.append(SPACE);
      }

      if (stateObject.hasItems()) {
        toStringChildren(stateObject, true);
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.InExpression

    if (stateObject.isDecorated()) {
      toText(stateObject);
    }
    else {
      InExpression expression = stateObject.getExpression();

      if (stateObject.hasStateObject()) {
        stateObject.getStateObject().accept(this);
        writer.append(SPACE);
      }

      // 'NOT'
      if (stateObject.hasNot()) {
        appendIdentifier((expression != null) ? expression.getActualNotIdentifier() : NOT, NOT);
        writer.append(SPACE);
      }

      // 'IN'
      appendIdentifier((expression != null) ? expression.getActualInIdentifier() : IN, IN);

      if (!stateObject.isSingleInputParameter()) {
        writer.append(LEFT_PARENTHESIS);
      }
      else if (shouldOutput(expression) || expression.hasSpaceAfterIn()) {
        writer.append(SPACE);
      }

      if (stateObject.hasItems()) {
        toStringChildren(stateObject, true);
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.InExpression

    if (stateObject.isDecorated()) {
      toText(stateObject);
    }
    else {
      InExpression expression = stateObject.getExpression();

      if (stateObject.hasStateObject()) {
        stateObject.getStateObject().accept(this);
        writer.append(SPACE);
      }

      // 'NOT'
      if (stateObject.hasNot()) {
        appendIdentifier((expression != null) ? expression.getActualNotIdentifier() : NOT, NOT);
        writer.append(SPACE);
      }

      // 'IN'
      appendIdentifier((expression != null) ? expression.getActualInIdentifier() : IN, IN);

      if (!stateObject.isSingleInputParameter()) {
        writer.append(LEFT_PARENTHESIS);
      }
      else if (shouldOutput(expression) || expression.hasSpaceAfterIn()) {
        writer.append(SPACE);
      }

      if (stateObject.hasItems()) {
        toStringChildren(stateObject, true);
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.InExpression

    if (stateObject.isDecorated()) {
      toText(stateObject);
    }
    else {
      InExpression expression = stateObject.getExpression();

      if (stateObject.hasStateObject()) {
        stateObject.getStateObject().accept(this);
        writer.append(SPACE);
      }

      // 'NOT'
      if (stateObject.hasNot()) {
        appendIdentifier((expression != null) ? expression.getActualNotIdentifier() : NOT, NOT);
        writer.append(SPACE);
      }

      // 'IN'
      appendIdentifier((expression != null) ? expression.getActualInIdentifier() : IN, IN);

      if (!stateObject.isSingleInputParameter()) {
        writer.append(LEFT_PARENTHESIS);
      }
      else if (shouldOutput(expression) || expression.hasSpaceAfterIn()) {
        writer.append(SPACE);
      }

      if (stateObject.hasItems()) {
        toStringChildren(stateObject, true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.