Package com.sun.javadoc

Examples of com.sun.javadoc.ClassDoc.methods()


    if (interfaces != null) {
      // Look through the methods on superInterface for a matching methodDoc.
      //
      for (int intfIndex = 0; intfIndex < interfaces.length; ++intfIndex) {
        ClassDoc currentIntfDoc = interfaces[intfIndex];
        MethodDoc[] intfMethodDocs = currentIntfDoc.methods();
        for (int methodIndex = 0; methodIndex < intfMethodDocs.length; ++methodIndex) {
          MethodDoc intfMethodDoc = intfMethodDocs[methodIndex];
          String methodDocName = methodDoc.name();
          String intfMethodDocName = intfMethodDoc.name();
          if (methodDocName.equals(intfMethodDocName)) {
View Full Code Here


      // dont process a subresource outside the context of its parent method
      if (isSubResourceClass && this.parentMethod == null) {
        // skip
      } else {
        for (MethodDoc method : currentClassDoc.methods()) {
          ApiMethodParser methodParser = this.parentMethod == null ? new ApiMethodParser(this.options, this.rootPath, method, this.classes,
              defaultErrorTypeClass) : new ApiMethodParser(this.options, this.parentMethod, method, this.classes, defaultErrorTypeClass);

          Method parsedMethod = methodParser.parse();
          if (parsedMethod == null) {
View Full Code Here

          }

          // Print out all constructors and methods
          Collection<ExecutableMemberDoc> members = new ArrayList<ExecutableMemberDoc>();
          members.addAll(Arrays.asList(cls.constructors(true)));
          members.addAll(Arrays.asList(cls.methods(true)));

          if (!members.isEmpty()) {
            pw.format("  <dd>%s</dd>\n", createMemberList(members));
          }
View Full Code Here

                  typeInfo += getPublicConstantDoc(type);

                  Collection<String> getterNames = getGetterNames(type);

                  for (MethodDoc method : typeDoc.methods()) {

                     if (method.isPublic()
                        && getterNames.contains(method.name())
                        && !ignore(method)) {
View Full Code Here

      // Look in parent class for javadoc
      if (methodDoc.commentText().contains("@inheritDoc")) {

         ClassDoc containingClass = methodDoc.containingClass();
         ClassDoc superClass = containingClass.superclass().asClassDoc();
         for (MethodDoc md : superClass.methods()) {
            if (md.name().equalsIgnoreCase(methodDoc.name())
               && md.signature().equalsIgnoreCase(methodDoc.signature())) {

               return md;
            }
View Full Code Here

    ClassDoc classDoc = method.containingClass();
   
    int startline = start.line();
    int endline = -1;
    boolean foundMethod = false;
    for (MethodDoc methoddoc: classDoc.methods()){
      if (foundMethod){
        endline = methoddoc.position().line();
        break;
      }
     
View Full Code Here

    ClassDoc classDoc = method.containingClass();
   
    int startline = start.line();
    int endline = -1;
    boolean foundMethod = false;
    for (MethodDoc methoddoc: classDoc.methods()){
      if (foundMethod){
        endline = methoddoc.position().line();
        break;
      }
     
View Full Code Here

      if (container instanceof ClassDoc) {
        ClassDoc doc = (ClassDoc) container;
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.constructors());
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.methods());
        replaceMessagerRecursively(newMessager, (Object[]) doc.fields());
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.innerClasses());
      }
    }
View Full Code Here

   }

   protected Doc findDocElement(Class<?> c, String elementName) {
      while (true) {
         ClassDoc classDoc = rootDoc.classNamed(c.getName());
         for (MethodDoc md : classDoc.methods()) {
            if (md.name().equalsIgnoreCase(elementName)) {
               return md;
            }
         }
         for (FieldDoc fd : classDoc.fields()) {
View Full Code Here

          } else if (doc instanceof ClassDoc) {
            // nested nodes are constructors, methods or fields.
            ClassDoc cd = (ClassDoc) dynamicProxyInstance();
            inclusionRequired =
              cd.constructors().length > 0 ||
              cd.methods().length > 0 ||
              cd.fields().length > 0 ||
              cd.enumConstants().length > 0;
            if (! inclusionRequired && cd instanceof AnnotationTypeDoc) {
              AnnotationTypeDoc atd = (AnnotationTypeDoc) cd;
              inclusionRequired = atd.elements().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.