Examples of methods()


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

      if (classDoc.tags("prefix").length == 1) {
        cls.setAttribute("prefix", classDoc.tags("prefix")[0].text());
      }
      cls.setAttribute("description", classDoc.commentText());

      MethodDoc[] methods = classDoc.methods();
      for (int j = 0; j < methods.length; j++) {
        MethodDoc method = methods[j];
        Element function = document.createElement("function");
        cls.appendChild(function);
        function.setAttribute("name", method.name());
View Full Code Here

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

    if (generator.hasEnumSupport()) return cc.catalysts.cdoclet.generator.Type.EMPTY;
    if (enumerationTypes.containsKey(typeName)) return enumerationTypes.get(typeName);

    if (classDoc != null && enumAnnotation != null) {
      for (MethodDoc methodDoc : classDoc.methods()) {
        for (AnnotationDesc annotationDesc : methodDoc.annotations()) {
          if (annotationDesc.annotationType().qualifiedTypeName().equals(enumAnnotation.getCanonicalName())) {
            cc.catalysts.cdoclet.generator.Type type = GeneratorUtils.getType(methodDoc.returnType(), generator, new HashSet<String>());
            enumerationTypes.put(typeName, type);
            return type;
View Full Code Here

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

    private static void getAllMethods(Type type, List<RestMethod> methods) {
        // Don't walk up beyond our classes.
        if (type != null && type.qualifiedTypeName().startsWith("org.candlepin")) {
            ClassDoc classDoc = type.asClassDoc();
            getAllMethods(classDoc.superclassType(), methods);
            for (MethodDoc methodDoc : classDoc.methods()) {
                if (methodDoc.isPublic()) {
                    methods.add(new RestMethod(methodDoc));
                }
            }
        }
View Full Code Here

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

      parent.put("description", cd.name() + ": " + getInstanceDescription(doc));
      ret.add(parent);
    }

    //get parameters from this and all other declarations of method
    for( MethodDoc m : cd.methods() ){
      if(Shared.i().shouldOmit(m)){
        continue;
      }
      if(m.name().equals(doc.name())){
        ret.addAll(parseParameters(m));
View Full Code Here

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

    ClassDoc cd = doc.containingClass();
    if( cd != null && doc.isMethod() )
    {  // if there is a containing class, get @see tags for all
      // methods with the same name as this one
      // Fixes gh issue 293
      for( MethodDoc m : cd.methods() )
      {
        if(m.name().equals(doc.name()))
        {
          for( SeeTag tag : m.seeTags() )
          {
View Full Code Here

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

    HashMap<String, ProgramElementDoc> classMethods = new HashMap<String, ProgramElementDoc>();
    HashMap<String, ProgramElementDoc> classFields = new HashMap<String, ProgramElementDoc>();
    if( doc.isMethod() || doc.isField() )
    {  // fill our maps
      ClassDoc containingClass = doc.containingClass();
      for( MethodDoc m : containingClass.methods() ) {
        if( needsWriting( m ) ) {
          classMethods.put( m.name(), m );
        }
      }
      for( FieldDoc f : containingClass.fields() ) {
View Full Code Here

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

     
      substructure = docInstance.constructors();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.methods();
      Arrays.sort(substructure);
      addChildDocs(substructure );

      substructure = docInstance.innerClasses();
      Arrays.sort(substructure);
View Full Code Here

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

     
      substructure = docInstance.constructors();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.methods();
      Arrays.sort(substructure);
      addChildDocs(substructure );

      substructure = docInstance.innerClasses();
      Arrays.sort(substructure);
View Full Code Here

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

      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

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

      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
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.