Examples of containingClass()


Examples of com.sun.javadoc.MethodDoc.containingClass()

    return doc.equals(overriddenMethod());
  }

  public ClassDoc overriddenClass() {
    MethodDoc methodDoc = overriddenMethod();
    return methodDoc!=null ? methodDoc.containingClass() : null;
  }

  public MethodDoc overriddenMethod() {
    ClassDoc superClass = containingClass().superclass();
    while (superClass!=null) {
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.containingClass()

                nameTypeDescriptionList.add(new NameTypeDescription(matcher.group(1), matcher.group(2), matcher.group(3)));
            } else {
                String error = "Invalid " + tag.name() + " tag format \"" + text + "\" for ";
                if (tag.holder() instanceof MethodDoc) {
                    MethodDoc methodDoc = (MethodDoc) tag.holder();
                    error += "verb " + methodDoc.name() + " of component " + methodDoc.containingClass().simpleTypeName();
                } else if (tag.holder() instanceof ClassDoc) {
                    ClassDoc classDoc = (ClassDoc) tag.holder();
                    error += "component " + classDoc.simpleTypeName();
                } else {
                    error += "unknown Doc type";
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.containingClass()

    } else if (doc instanceof ConstructorDoc) {
      ConstructorDoc cdoc = (ConstructorDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else if (doc instanceof MethodDoc) {
      MethodDoc cdoc = (MethodDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else if (doc instanceof FieldDoc) {
      FieldDoc cdoc = (FieldDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else {
      id = "hash " + doc.hashCode();
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.containingClass()

    } else if (doc instanceof MethodDoc) {
      MethodDoc cdoc = (MethodDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else if (doc instanceof FieldDoc) {
      FieldDoc cdoc = (FieldDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else {
      id = "hash " + doc.hashCode();
    }
 
    return id;
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.containingClass()

  private void printIncludes() {
    MethodDoc javaDoc = method.getJavaDoc();
    Tag[] includes = Utils.getTags(javaDoc, "include");
    if (includes == null)
      return;
    File relativeTo = javaDoc.containingClass().position().file().getParentFile();
    for (Tag include : includes) {
      String fileName = include.text();
      File file = new File(relativeTo, fileName);
      if (!file.exists()) {
        doclet.printError(include.position(), "Missing included file: " + fileName);
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.containingClass()

         * implementation class is private, then we don't have a
         * reference cast to it, and so we try to cast to the remote
         * object reference to the method's declaring interface here.
         */
        String target = remoteClass.classDoc().isPrivate() ?
            "((" + methodDoc.containingClass().qualifiedName() + ") obj)" :
            "server";
        p.p(target + "." + methodName + "(");
        for (int i = 0; i < paramNames.length; i++) {
            if (i > 0)
                p.p(", ");
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.containingClass()

            RemoteClass.Method method = remoteMethods[i];
            MethodDoc methodDoc = method.methodDoc();
            String methodName = methodDoc.name();
            Type paramTypes[] = method.parameterTypes();

            p.p(methodDoc.containingClass().qualifiedName() + ".class.getMethod(\"" +
                methodName + "\", new java.lang.Class[] {");
            for (int j = 0; j < paramTypes.length; j++) {
                if (j > 0)
                    p.p(", ");
                p.p(paramTypes[j].toString() + ".class");
View Full Code Here

Examples of com.sun.javadoc.ProgramElementDoc.containingClass()

   private static boolean isPublicAPI(Doc doc) {
      if (doc.tags(PRIVATE_TAG).length > 0)
         return false;
      if (doc instanceof ProgramElementDoc) {
         ProgramElementDoc peDoc = (ProgramElementDoc) doc;
         if (peDoc.containingClass() != null && peDoc.containingClass().tags(PUBLIC_TAG).length > 0)
            return true;
         if (peDoc.containingPackage().tags(PUBLIC_TAG).length > 0)
            return true;
      }
      return doc.tags(PUBLIC_TAG).length > 0;
View Full Code Here

Examples of com.sun.javadoc.ProgramElementDoc.containingClass()

   private static boolean isPublicAPI(Doc doc) {
      if (doc.tags(PRIVATE_TAG).length > 0)
         return false;
      if (doc instanceof ProgramElementDoc) {
         ProgramElementDoc peDoc = (ProgramElementDoc) doc;
         if (peDoc.containingClass() != null && peDoc.containingClass().tags(PUBLIC_TAG).length > 0)
            return true;
         if (peDoc.containingPackage().tags(PUBLIC_TAG).length > 0)
            return true;
      }
      return doc.tags(PUBLIC_TAG).length > 0;
View Full Code Here

Examples of com.sun.javadoc.ProgramElementDoc.containingClass()

   private static boolean isPublicAPI(Doc doc) {
      if (doc.tags(PRIVATE_TAG).length > 0)
         return false;
      if (doc instanceof ProgramElementDoc) {
         ProgramElementDoc peDoc = (ProgramElementDoc) doc;
         if (peDoc.containingClass() != null && peDoc.containingClass().tags(PUBLIC_TAG).length > 0)
            return true;
         if (peDoc.containingPackage().tags(PUBLIC_TAG).length > 0)
            return true;
      }
      return doc.tags(PUBLIC_TAG).length > 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.