Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.QuercusClass


  {
    try {
      if (_staticName == null)
        _staticName = env.createStaticName();

      QuercusClass cls = env.getCallingClass();

      String staticName = _staticName;
     
      if (cls != null)
        staticName = cls.getName() + "::" + staticName;

      Var var = env.getStaticVar(staticName);
     
      env.setValue(_var.getName(), var);
View Full Code Here


   *
   * @return the expression value.
   */
  public Value evalRef(Env env)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    return cl.getStaticField(env, _varName.evalString(env));
  }
View Full Code Here

   *
   * @return the expression value.
   */
  public void evalAssign(Env env, Value value)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return;
    }
   
    cl.getStaticField(env, _varName.evalString(env)).set(value);
  }
View Full Code Here

   * @return the expression value.
   */
  public Value eval(Env env)
  {
    String name = _name.evalString(env).intern();
    QuercusClass cl = env.findAbstractClass(name);

    _fullArgs = _args;

    Value []args = new Value[_args.length];

    for (int i = 0; i < args.length; i++) {
      args[i] = _args[i].eval(env);
    }

    env.pushCall(this, NullValue.NULL, args);
   
    try {
      env.checkTimeout();

      return cl.callNew(env, args);
    } finally {
      env.popCall();
    }
  }
View Full Code Here

   *
   * @return the expression value.
   */
  public Value eval(Env env)
  {
    QuercusClass cls = env.getCallingClass();
   
    if (cls == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    AbstractFunction fun = cls.getFunction(_name);
   
    Value []values = new Value[_args.length];

    for (int i = 0; i < values.length; i++)
      values[i] = _args[i].eval(env);
View Full Code Here

   *
   * @return the expression value.
   */
  public Value eval(Env env)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    return cl.getStaticField(env, _varName.evalString(env)).toValue();
  }
View Full Code Here

   *
   * @return the expression value.
   */
  public Value evalCopy(Env env)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    return cl.getStaticField(env, _varName.evalString(env)).copy();
  }
View Full Code Here

   * @return the expression value.
   */
  @Override
  public Value evalArg(Env env, boolean isTop)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    return cl.getStaticField(env, _varName.evalString(env));
  }
View Full Code Here

   *
   * @return the expression value.
   */
  public Value evalArray(Env env)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    return cl.getStaticField(env, _varName.evalString(env)).getArray();
  }
View Full Code Here

   *
   * @return the expression value.
   */
  public Value evalObject(Env env)
  {
    QuercusClass cl = env.getCallingClass();

    if (cl == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return NullValue.NULL;
    }
   
    return cl.getStaticField(env, _varName.evalString(env)).getObject(env);
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.env.QuercusClass

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.