Package anvil.script.expression

Examples of anvil.script.expression.Expression


      case FLOATING_POINT_LITERAL:
      case INF:
      case FALSE:
      case TRUE:
      case PATTERN:
        list = PrintValueList(new Expression(new ConstantNode("<br>\n"), null));
        break;
      default:
        jj_la1[60] = jj_gen;
        ;
      }
View Full Code Here


    throw new Error("Missing return statement in function");
  }

  final public Object[] ForExpressionList(Token t) throws ParseException {
  Expression[] init = null;
  Expression condition = null;
  Expression[] action = null;
  int n;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case MODULE:
    case SYMBOL:
View Full Code Here

    } else {
      ;
    }
    Expression();
    jj_consume_token(CLOSE);
      Expression expr = (Expression)pop();
      switch(count) {
      case 1:
        value = index;
        key   = null;
        index = null;
View Full Code Here

  final public void ContinueStatement() throws ParseException {
  Token t;
  Token s = null;
  String label = null;
  int target = 0;
  Expression expr = null;
  Statement stmt;
    t = jj_consume_token(CONTINUE);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case SYMBOL:
      s = jj_consume_token(SYMBOL);
View Full Code Here

    StatementModifier(stmt);
  }

  final public void ExitStatement() throws ParseException {
  Token t;
  Expression expr = null;
    t = jj_consume_token(EXIT);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case MODULE:
    case SYMBOL:
    case BEGIN:
View Full Code Here

    StatementModifier(new ExitStatement(flowPeek(), toLocation(t), expr));
  }

  final public void ReturnStatement() throws ParseException {
  Token t;
  Expression expression = null;
  Statement stmt;
    t = jj_consume_token(RETURN);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case MODULE:
    case SYMBOL:
View Full Code Here

        context.error(getLocation(), "Cannot create implicit constructor call in class '" + getName() +
          "' 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

  {
    Location location = _expression.getLocation();
    AssignmentNode assignment = new AssignmentNode(location, 2);
    assignment.setChild(0,new ConstantVariableNode(this));
    assignment.setChild(1, new ConstantNode(getValue()));
    return new Expression(assignment, location);
  }
View Full Code Here

  {
    Location location = _expression.getLocation();
    AssignmentNode assignment = new AssignmentNode(location, 2);
    assignment.setChild(0, new ConstantVariableNode(this));
    assignment.setChild(1, _expression.getChild());
    return new Expression(assignment, location);
  }
View Full Code Here

      }
      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);
        }
      }
    }

    String dottedname = tag.getValue("function");
    if (dottedname != null) {
      Name name = Grammar.parseDottedName(parser, location, dottedname);
      if (name != null) {
        _expression = new Expression(new LinkNode(this, location, name, parameters, LinkNode.GET), location);
      }
    } else {
      parser.error(location, "Attribute 'function' not given");
    }
View Full Code Here

TOP

Related Classes of anvil.script.expression.Expression

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.