Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.QuercusClass


    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

      // String className = _className;
      StringValue staticName = _staticName;

      Value qThis = env.getThis();
     
      QuercusClass qClass = qThis.getQuercusClass();
      String className = qClass.getName();
     
      // Var var = qClass.getStaticFieldVar(env, env.createString(staticName));
      // Var var = qClass.getStaticFieldVar(env, staticName);
      Var var = env.getStaticVar(env.createString(className
                                                  + "::" + staticName));
View Full Code Here

      return BooleanValue.FALSE;
   
    if (className == null || className.length() == 0)
      className = "SimpleXMLElement";
   
    QuercusClass cls = env.getClass(className);

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

                                   @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

  {
    if (isStatic())
      qThis = qClass;
   
    Value oldThis = env.setThis(qThis);
    QuercusClass oldClass = env.setCallingClass(qClass);
   
    try {
      return callImpl(env, args, false, null, null);
    } finally {
      env.setThis(oldThis);
View Full Code Here

                             QuercusClass qClass,
                             Value qThis,
                             Value[] args)
  {
    Value oldThis = env.setThis(qThis);
    QuercusClass oldClass = env.setCallingClass(qClass);
   
    try {
      return callImpl(env, args, true, null, null);
    } finally {
      env.setThis(oldThis);
View Full Code Here

                                  @Optional int options,
                                  @Optional boolean dataIsUrl,
                                  @Optional Value namespaceV,
                                  @Optional boolean isPrefix)
  {
    QuercusClass cls = env.getCallingClass();
   
    if (cls == null)
      cls = env.getClass("SimpleXMLElement");
   
    return create(env, cls,
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

   * @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

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.