Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.QuercusClass


 
  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

    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.getStaticField(env, _name) != 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.getStaticFieldComment(_name.toString());
    }
View Full Code Here

    }
   
    env.pushCall(this, NullValue.NULL, args);
   
    try {
      QuercusClass cl = env.findAbstractClass(_name);

      env.checkTimeout();

      return cl.callNew(env, args);
    } finally {
      env.popCall();
    }
  }
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

    Value []args = evalArgs(env, _args);

    env.pushCall(this, NullValue.NULL, args);
   
    // php/0249
    QuercusClass oldCallingClass = env.setCallingClass(null);
   
    // XXX: qa/1d14 Value oldThis = env.setThis(UnsetValue.NULL);
    try {
      env.checkTimeout();
View Full Code Here

  @Override
  public Value eval(Env env)
  {
    String className = _className.evalString(env);
   
    QuercusClass qClass = env.getClass(className);
   
    StringValue varName = _varName.evalStringValue(env);
   
    return qClass.getStaticFieldValue(env, varName);
  }
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.