Exemple #1
0
 @Override
 public IExpression resolveAgainst(final IScope scope) {
   ListExpression copy = new ListExpression(Arrays.asList(elements));
   for (int i = 0; i < elements.length; i++) {
     IExpression exp = elements[i];
     if (exp != null) {
       copy.elements[i] = exp.resolveAgainst(scope);
     }
   }
   return copy;
 }
Exemple #2
0
 @Override
 public boolean isConst() {
   for (final IExpression e : elements) {
     // indicates a former problem in the compilation of the expression
     if (e == null) {
       return false;
     }
     if (!e.isConst()) {
       return false;
     }
   }
   isConst = true;
   return true;
 }