Package com.caucho.quercus.program

Examples of com.caucho.quercus.program.ClassDef


    public int hashCode()
    {
      int hash = 37;

      ClassDef def = _defRef.get();
     
      QuercusClass parent = null;
      if (_parentRef != null)
  parent = _parentRef.get();

      if (def != null)
  hash = 65521 * hash + def.hashCode();

      if (parent != null)
  hash = 65521 * hash + parent.hashCode();

      return hash;
View Full Code Here


    public boolean equals(Object o)
    {
      ClassKey key = (ClassKey) o;

      ClassDef aDef = _defRef.get();
      ClassDef bDef = key._defRef.get();

      if (aDef != bDef)
  return false;

      if (_parentRef == key._parentRef)
View Full Code Here

        throw new QuercusRuntimeException(L.l("cannot find interface {0}",
                                              iface));

      // _instanceofSet.addAll(cl.getInstanceofSet());
       
      ClassDef ifaceDef = cl.getClassDef();
      // ClassDef ifaceDef = moduleContext.findClass(iface);

      if (ifaceDef != null) {
        if (ifaces.add(iface)) {
          addInstances(instanceofSet, ifaces, ifaceDef);

          ifaceDef.initClass(this);
        }
      }
    }
  }
View Full Code Here

                             boolean autoload, boolean isTop)
  {
    ClassDef [] defList = _classDefList;
   
    for (int i = 0; i < defList.length; i++) {
      ClassDef def = defList[i];
     
      if (! isTop && def.isInterface()) {
        String name = def.getName();
       
        array.put(name, name);
      }

      String []defNames = def.getInterfaces();
     
      for (int j = 0; j < defNames.length; j++) {
        QuercusClass cls = env.findClass(defNames[j]);
       
        cls.getInterfaces(env, array, autoload, false);
View Full Code Here

  public boolean implementsInterface(Env env, String name)
  {
    ClassDef [] defList = _classDefList;
   
    for (int i = 0; i < defList.length; i++) {
      ClassDef def = defList[i];
     
      if (def.isInterface() && def.getName().equals(name))
        return true;

      String []defNames = def.getInterfaces();
     
      for (int j = 0; j < defNames.length; j++) {
        QuercusClass cls = env.findClass(defNames[j]);

        if (cls.implementsInterface(env, name))
View Full Code Here

  }
 
  @ReturnNullAsFalse
  public String getDocComment()
  {
    ClassDef def = _cls.getClassDef();
   
    return def.getComment();
  }
View Full Code Here

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

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

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

      return def.getStaticFieldComment(_name);
    }
View Full Code Here

    public boolean equals(Object o)
    {
      ClassKey key = (ClassKey) o;

      ClassDef aDef = _defRef.get();
      ClassDef bDef = key._defRef.get();

      if (aDef != bDef)
        return false;

      if (_parentRef == key._parentRef)
View Full Code Here

        throw new QuercusRuntimeException(L.l("cannot find interface {0}",
                                              iface));

      // _instanceofSet.addAll(cl.getInstanceofSet());
       
      ClassDef ifaceDef = cl.getClassDef();
      // ClassDef ifaceDef = moduleContext.findClass(iface);

      if (ifaceDef != null) {
        if (ifaces.add(iface)) {
          addInstances(instanceofSet, ifaces, ifaceDef);

          ifaceDef.initClass(this);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.program.ClassDef

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.