Package com.caucho.quercus.function

Examples of com.caucho.quercus.function.AbstractFunction.callMethod()


                          StringValue methodName, int hash,
                          Value a1, Value a2, Value a3, Value a4)
  {
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, _quercusClass, this, a1, a2, a3, a4);
  }

  /**
   * calls the function.
   */
 
View Full Code Here


                          StringValue methodName, int hash,
                          Value a1, Value a2, Value a3, Value a4, Value a5)
  {
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, _quercusClass, this, a1, a2, a3, a4, a5);
  }

  /**
   * Evaluates a method.
   */
 
View Full Code Here

  public StringValue toString(Env env)
  {
    AbstractFunction toString = _quercusClass.getToString();
   
    if (toString != null)
      return toString.callMethod(env, _quercusClass, this).toStringValue();
    else
      return env.createString(_className + "[]");
  }

  /**
 
View Full Code Here

    QuercusClass qClass = getQuercusClass();

    AbstractFunction fun = qClass.getDestructor();

    if (fun != null)
      fun.callMethod(env, qClass, this);
  }

  private static String toMethod(char []key, int keyLength)
  {
    return new String(key, 0, keyLength);
View Full Code Here

      initObject(env, objectValue);
     
      AbstractFunction fun = findConstructor();

      if (fun != null)
        fun.callMethod(env, this, objectValue, args);
      else {
        //  if expr
      }

      return objectValue;
View Full Code Here

    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, this, qThis, args);
  }
 
  public final Value callMethod(Env env, Value qThis, StringValue methodName,
                                Value []args)
  {
View Full Code Here

    if (qThis.isNull())
      qThis = this;

    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, this, qThis);
 
 
  public final Value callMethod(Env env, Value qThis, StringValue methodName)
  {
    return callMethod(env, qThis,
View Full Code Here

    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, this, qThis, a1);
 
 
  public final Value callMethod(Env env, Value qThis, StringValue methodName,
                                Value a1)
  {
View Full Code Here

    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, this, qThis, a1, a2);
 
 
  public final Value callMethod(Env env, Value qThis, StringValue methodName,
                                Value a1, Value a2)
  {
View Full Code Here

    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethod(env, this, qThis, a1, a2, a3);
 
 
  public final Value callMethod(Env env, Value qThis, StringValue methodName,
                                Value a1, Value a2, Value a3)
  {
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.