Package com.caucho.quercus.function

Examples of com.caucho.quercus.function.AbstractFunction


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

    return fun.callMethodRef(env, this, qThis);
 
View Full Code Here


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

    return fun.callMethodRef(env, this, qThis, a1);
 
View Full Code Here

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

    return fun.callMethodRef(env, this, qThis, a1, a2);
 
View Full Code Here

                             Value a1, Value a2, Value a3)
  {
    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethodRef(env, this, qThis, a1, a2, a3);
 
View Full Code Here

                             Value a1, Value a2, Value a3, Value a4)
  {
    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethodRef(env, this, qThis,
                             a1, a2, a3, a4);
 
View Full Code Here

                             Value a1, Value a2, Value a3, Value a4, Value a5)
  {
    if (qThis.isNull())
      qThis = this;
   
    AbstractFunction fun = _methodMap.get(methodName, hash);

    return fun.callMethodRef(env, this, qThis,
                             a1, a2, a3, a4, a5);
  }
View Full Code Here

  /**
   * Finds the matching function.
   */
  public final AbstractFunction getStaticFunction(String name)
  {
    AbstractFunction fun = findStaticFunction(name);
    /*
    if (fun != null)
      return fun;

    fun = findStaticFunctionLowerCase(name.toLowerCase());
View Full Code Here

  /**
   * Evaluates the function, returning a reference.
   */
  public Value callRef(Env env, Value []args)
  {
    AbstractFunction fun = env.getFunction(this);

    if (fun != null)
      return fun.callRef(env, args);
    else
      return env.warning(L.l("{0} is not a valid function",
                             this));
  }
View Full Code Here

  /**
   * Evaluates the function, returning a copy
   */
  public Value callCopy(Env env, Value []args)
  {
    AbstractFunction fun = env.getFunction(this);

    if (fun != null)
      return fun.callCopy(env, args);
    else
      return env.warning(L.l("{0} is not a valid function",
                             this));
  }
View Full Code Here

    return null;
  }

  public AbstractFunction getFunction(String name)
  {
    AbstractFunction fun = findFunction(name);

    if (fun != null)
      return fun;
    else
      throw createErrorException(L.l("'{0}' is an unknown function.", name));
View Full Code Here

TOP

Related Classes of com.caucho.quercus.function.AbstractFunction

Copyright © 2018 www.massapicom. 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.