Package anvil.script.expression

Examples of anvil.script.expression.Expression.check()


    int n = _size;
    for(int i=0; i<n; i++) {
      Parameter param = params[i];
      Expression expr = param.expression;
      if (expr != null) {
        expr.check(context);
        if (expr.isConstant()) {
          param.value = expr.eval();
        } else {
          context.error(expr.getLocation(), "Default value for parameter '"+param.name+"' is not a constant");
        }
View Full Code Here


  {
    if (_index != null) {
      int n = _index.length;
      for(int i=0; i<n; i++) {
        Expression expr = _index[i];
        expr.check(context);
        if (!expr.isAssignable()) {
          context.error(getLocation(), "Index expression #"+(i+1)+" is not assignable");
        }
      }
    }
View Full Code Here

    }
    if (_key != null) {
      int n = _key.length;
      for(int i=0; i<n; i++) {
        Expression expr = _key[i];
        expr.check(context);
        if (!expr.isAssignable()) {
          context.error(getLocation(), "Key expression #"+(i+1)+" is not assignable");
        }
      }
    }
View Full Code Here

    }
    if (_value != null) {
      int n = _value.length;
      for(int i=0; i<n; i++) {
        Expression expr = _value[i];
        expr.check(context);
        if (!expr.isAssignable()) {
          context.error(getLocation(), "Value expression  #"+(i+1)+" is not assignable");
        }
      }
    }
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.