Package com.caucho.quercus.env

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


                                   @Optional boolean isPrefix)
  {
    if (className == null || className.length() == 0)
      className = "SimpleXMLElement";

    QuercusClass cls = env.getClass(className);

    return SimpleXMLElement.create(env, cls,
                                   file, options, true,
                                   namespaceV, isPrefix);
  }
View Full Code Here


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

    if (cl == null)
      throw env.createErrorException(L.l("{0} is an unknown class", _className));

    AbstractFunction fun = cl.getFunction(_name);
   
    Value []values = new Value[_args.length];
   
    for (int i = 0; i < values.length; i++) {
      // php/09e1
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.findFieldIndex(_nameV) >= 0)
        return cls;
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.