/**
  * Sets the value for the spoecified key.
  */
 public override Value put(Env env, ObjectValue qThis, Value key, Value value)
 {
     if (_arrayPut != null)
     {
         return(_arrayPut.callMethod(env,
                                     _arrayPut.getQuercusClass(),
                                     qThis, key, value));
     }
     else
     {
         return(UnsetValue.UNSET);
     }
 }
Esempio n. 2
0
 /**
  * Returns the value for the specified key.
  */
 public override int count(Env env, ObjectValue qThis)
 {
     if (_count != null)
     {
         return(_count.callMethod(env,
                                  _count.getQuercusClass(),
                                  qThis).toInt());
     }
     else
     {
         return(1);
     }
 }
 /**
  * Returns the value for the specified key.
  */
 public override long count(Env env, ObjectValue qThis)
 {
     if (_arrayCount != null)
     {
         return(_arrayCount.callMethod(env,
                                       _arrayGet.getQuercusClass(),
                                       qThis).toLong());
     }
     else
     {
         return(1);
     }
 }
 /**
  * Returns the value for the specified key.
  */
 public override Value get(Env env, ObjectValue qThis, Value key)
 {
     if (_arrayGet != null)
     {
         return(_arrayGet.callMethod(env,
                                     _arrayGet.getQuercusClass(),
                                     qThis,
                                     new Value[] { key }));
     }
     else
     {
         return(UnsetValue.UNSET);
     }
 }