Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.ArrayValue.each()


      _varList[0].evalAssignValue(env, array.key());

    if (_varList.length > 1 && _varList[1] != null)
      _varList[1].evalAssignValue(env, array.current().copy());
     
    return array.each();
  }
 
  public boolean evalEachBoolean(Env env, Value value)
  {
    if (! (value instanceof ArrayValue)) {
View Full Code Here


    Value value = var.toValue();

    if (value instanceof ArrayValue) {
      ArrayValue array = (ArrayValue) value;

      return array.each();
    }
    else {
      env.warning(L.l("each() argument must be an array at '{0}'", value.getClass().getSimpleName()));
   
      return BooleanValue.FALSE;
View Full Code Here

      _keyVar.evalAssign(env, array.key());

    if (_valueVar != null)
      _valueVar.evalAssign(env, array.current());

    return array.each();
  }

  /**
   * Evaluates the expression.
   *
 
View Full Code Here

    Value value = getExpr().eval(env);

    if (value instanceof ArrayValue) {
      ArrayValue array = (ArrayValue) value;

      return array.each();
    }
    else
      return BooleanValue.FALSE;
  }
View Full Code Here

    Value value = var.toValue();

    if (value instanceof ArrayValue) {
      ArrayValue array = (ArrayValue) value;

      return array.each();
    }
    else {
      env.warning(L.l("each() argument must be an array at '{0}'",
                      value.getClass().getSimpleName()));
   
View Full Code Here

      _varList[0].evalAssignValue(env, array.key());

    if (_varList.length > 1 && _varList[1] != null)
      _varList[1].evalAssignValue(env, array.current().copy());
     
    return array.each();
  }
 
  public boolean evalEachBoolean(Env env, Value value)
  {
    if (! (value instanceof ArrayValue)) {
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.