Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.QuercusClass$StaticField


   *
   * @return the expression value.
   */
  public void evalAssign(Env env, Value value)
  {
    QuercusClass cls = env.getCallingClass();
   
    if (cls == null) {
      env.error(getLocation(), L.l("no calling class found"));
     
      return;
    }
   
    cls.getStaticField(env, _varName).set(value);
  }
View Full Code Here


  }
 
  public ReflectionClass getDeclaringClass(Env env)
  {
    if (_clsName != null) {
      QuercusClass cls = env.findClass(_clsName);
      QuercusClass parent = cls.getParent();
     
      if (parent == null || parent.findFunction(_fun.getName()) != _fun)
        return new ReflectionClass(cls);
      else
        return getDeclaringClass(env, parent);
    }
    else
View Full Code Here

    return new ReflectionClass(_cls);
  }
 
  public static ReflectionClass __construct(Env env, Value obj)
  {
    QuercusClass cls;
   
    if (obj.isObject())
      cls = ((ObjectValue) obj.toValue()).getQuercusClass();
    else
      cls = env.findClass(obj.toString());
View Full Code Here

    }
    else {
      String []defList = def.getInterfaces();
     
      for (int i = 0; i < defList.length; i++) {
        QuercusClass cls = env.findClass(defList[i]);
       
        findInterfaces(env, array, cls);
      }
    }
  }
View Full Code Here

    }
  }
 
  private void addInterface(Env env, ArrayValue array, String name)
  {
    QuercusClass cls = env.findClass(name);

    array.put(StringValue.create(name),
              env.wrapJava(new ReflectionClass(cls)));
  }
View Full Code Here

  }
 
  @ReturnNullAsFalse
  public ReflectionClass getParentClass()
  {
    QuercusClass parent = _cls.getParent();
   
    if (parent == null)
      return null;
    else
      return new ReflectionClass(parent);
View Full Code Here

 
  public static ReflectionProperty __construct(Env env,
                                               String clsName,
                                               StringValue propName)
  {
    QuercusClass cls = env.findClass(clsName);

    if (cls == null) {
      throw new ReflectionException(L.l("Cannot find class '{0}'", clsName));
    }
   
View Full Code Here

      obj.putField(env, _nameV, value);
    }
   
    public final ReflectionClass getDeclaringClass(Env env)
    {
      QuercusClass cls = getDeclaringClass(env, _cls);
     
      if (cls != null)
        return new ReflectionClass(cls);
      else
        return null;
View Full Code Here

    protected QuercusClass getDeclaringClassImpl(Env env, QuercusClass cls)
    {
      if (cls == null)
        return null;
     
      QuercusClass refClass = getDeclaringClassImpl(env, cls.getParent());

      if (refClass != null)
        return refClass;
      else if (cls.getClassField(_nameV) != null)
        return cls;
View Full Code Here

      return null;
    }
   
    public String getComment(Env env)
    {
      QuercusClass cls = getDeclaringClass(env, _cls);
     
      ClassDef def = cls.getClassDef();

      return def.getFieldComment(_nameV);
    }
View Full Code Here

TOP

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

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.