Package anvil.script.expression

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


        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

        }
        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

    }
    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

      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

          "' 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

      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

TOP

Related Classes of anvil.script.expression.ExpressionList

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.