Package com.caucho.quercus.program

Examples of com.caucho.quercus.program.ClassDef


  /**
   * Finds the java class wrapper.
   */
  public ClassDef findJavaClassWrapper(String name)
  {
    ClassDef def = _javaClassWrappers.get(name);

    if (def != null)
      return def;

    return _lowerJavaClassWrappers.get(name.toLowerCase(Locale.ENGLISH));
View Full Code Here


    for (Map.Entry<String,ClassDef> entry
           : _moduleContext.getClassMap().entrySet()) {

      String name = entry.getKey();
      ClassDef def = entry.getValue();

      int id = getClassId(name);

      _classDefMap[id] = def;
    }
View Full Code Here

  /**
   * Finds the java class wrapper.
   */
  public ClassDef findJavaClassWrapper(String name)
  {
    ClassDef def = _javaClassWrappers.get(name);

    if (def != null)
      return def;

    return _lowerJavaClassWrappers.get(name.toLowerCase(Locale.ENGLISH));
View Full Code Here

    for (Map.Entry<String,ClassDef> entry
           : _moduleContext.getClassMap().entrySet()) {

      String name = entry.getKey();
      ClassDef def = entry.getValue();

      int id = getClassId(name);

      _classDefMap[id] = def;
    }
View Full Code Here

      System.arraycopy(oldClassDefList, 0,
                       _classDef, 0,
                       oldClassDefList.length);
    }

    ClassDef def = _classDef[classId];

    if (def == null) {
      QuercusClass cl = findClass(classId, true, true);
     
      if (cl != null)
        return cl;
      else
        throw new QuercusException(L.l("'{0}' is an unknown class",
                                       _quercus.getClassName(classId)));
    }

    int parentId = -1;

    if (def.getParentName() != null)
      parentId = _quercus.getClassId(def.getParentName());
   
    addClass(def, classId, parentId);
   
    return _qClass[classId];
  }
View Full Code Here

  private QuercusClass createClassFromCache(int id,
                                            boolean useAutoload,
                                            boolean useImport)
  {
    if (id < _classDef.length && _classDef[id] != null) {
      ClassDef classDef = _classDef[id];
     
      String parentName = classDef.getParentName();

      QuercusClass parent = null;

      if (parentName != null)
        parent = findClass(parentName);

      if (parentName == null || parent != null)
        return createQuercusClass(id, classDef, parent);
      else
        return null; // php/
    }

    ClassDef staticClass = _quercus.getClassDef(id);

    if (staticClass != null)
      return createQuercusClass(id, staticClass, null); // XXX: cache
    else
      return null;
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.toString());
    }
View Full Code Here

  /**
   * Adds a class, e.g. from an include.
   */
  public ClassDef findClassDef(String name)
  {
    ClassDef def = _classDefMap.get(name);

    if (def != null)
      return def;

    if (_lowerClassDefMap != null)
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.