Examples of ExpressionList


Examples of anvil.script.expression.ExpressionList

      ArgumentList();
      jj_consume_token(CLOSE);
      break;
    case BEGIN:
      InlineFunction();
                       push(new ExpressionList(pop()));
      break;
    default:
      jj_la1[132] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
View Full Code Here

Examples of anvil.script.expression.ExpressionList

        jj_consume_token(CLOSE);
        args = (Parent)pop();
        break;
      case BEGIN:
        InlineFunction();
        args = new ExpressionList(pop());
        break;
      default:
        jj_la1[137] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
View Full Code Here

Examples of anvil.script.expression.ExpressionList

        }
        push(new DynamicCallNode(pop(), parameters));
        break;
      case BEGIN:
        InlineFunction();
        parameters = new ExpressionList(pop());
        push(new DynamicCallNode(pop(), parameters));
        break;
      case DOT:
        jj_consume_token(DOT);
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case OPEN:
          t = jj_consume_token(OPEN);
          ExpressionStart();
          jj_consume_token(CLOSE);
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case OPEN:
            jj_consume_token(OPEN);
            ArgumentList();
            jj_consume_token(CLOSE);
            break;
          case BEGIN:
            InlineFunction();
                           push(new ExpressionList(pop()));
            break;
          default:
            jj_la1[139] = jj_gen;
            jj_consume_token(-1);
            throw new ParseException();
          }
        if (terminated) {
          error(toLocation(t), "Empty brackets terminate variable expression");
        }
        parameters = (Parent)pop();
        if (parameters.hasNamedParameters()) {
          error(toLocation(t), "Named parameters are ignored in anonymous invokes");
        }
        Node method = pop();
        Node self = pop();
        push(new DynamicInvokeNode(self, method, parameters));
          break;
        case SYMBOL:
          t = jj_consume_token(SYMBOL);
                   isMethod = false;
          if (jj_2_23(2)) {
            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
            case OPEN:
              jj_consume_token(OPEN);
              ArgumentList();
              jj_consume_token(CLOSE);
              break;
            case BEGIN:
              InlineFunction();
                             push(new ExpressionList(pop()));
              break;
            default:
              jj_la1[140] = jj_gen;
              jj_consume_token(-1);
              throw new ParseException();
View Full Code Here

Examples of anvil.script.expression.ExpressionList

    }
    jj_consume_token(CLOSE_BRACKET);
      if (node != null) {
        push(node);
      } else {
        Parent argv = new ExpressionList(argc);
        for(--argc; argc>=0; argc--) {
          argv.setChild(argc, pop());
        }
        push(new ArrayNode(argv));
      }
  }
View Full Code Here

Examples of anvil.script.expression.ExpressionList

      break;
    default:
      jj_la1[154] = jj_gen;
      ;
    }
    Parent argv = new ExpressionList(argc);
    for(int i=argc-1; i>=0; i--) {
      argv.setChild(i, pop());
    }
    push(argv);
  }
View Full Code Here

Examples of anvil.script.expression.ExpressionList

          "' since superclass '" + getBase().getReference() + "' does not have constructor with empty parameter list");
      } else {
        BlockStatement block = _constructor.getBlockStatement();
        block.insert(new EvalStatement(block, getLocation(),
          new Expression(new ConstructorInvokeNode(this,
            new ExpressionList(0)), getLocation())));
      }
    }
  }
View Full Code Here

Examples of anvil.script.expression.ExpressionList

      for (int i=0; i<n; i++) {
        if (tag.getName(i).equalsIgnoreCase("param")) {
          size++;
        }
      }
      parameters = new ExpressionList(size);
      int c = 0;
      for (int i=0; i<n; i++) {
        if (tag.getName(i).equalsIgnoreCase("param")) {
          Expression expression = Grammar.parseExpression(tag.getValue(i), location, parser);
          parameters.setChild(c++, expression);
View Full Code Here

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

  public void visit(Function function) {
    // all aggregate functions (SUM, AVG, COUNT, MAX, MIN) have only one
    // parameter (Expression)
    // although COUNT(*) has no parameters
    // EXTRACT_YEAR has one parameter
    final ExpressionList params = function.getParameters();
    int numParams = 0;
    if (params != null) {
      params.accept(this);

      // in order to determine the size
      final List<Expression> listParams = params.getExpressions();
      numParams = listParams.size();
    }
    final List<ValueExpression> expressions = new ArrayList<ValueExpression>();
    for (int i = 0; i < numParams; i++)
      expressions.add(_exprStack.pop());
View Full Code Here

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

  }

  @Override
  public void visit(Function function) {
    _sb.append(function.getName());
    final ExpressionList params = function.getParameters();
    if (params != null) {
      if (function.isDistinct())
        _sb.append("(DISTINCT ");
      else
        _sb.append("(");
View Full Code Here

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

  public void visit(Function function) {
    // all aggregate functions (SUM, AVG, COUNT, MAX, MIN) have only one
    // parameter (Expression)
    // although COUNT(*) has no parameters
    // EXTRACT_YEAR has one parameter
    final ExpressionList params = function.getParameters();
    if (params != null)
      visit(params);
  }
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.