Package com.hypnoticocelot.jaxrs.doclet.model

Examples of com.hypnoticocelot.jaxrs.doclet.model.Method


        for (MethodDoc method : classDoc.methods()) {
            ApiMethodParser methodParser = parentMethod == null ?
                    new ApiMethodParser(options, rootPath, method) :
                    new ApiMethodParser(options, parentMethod, method);
            Method parsedMethod = methodParser.parse();
            if (parsedMethod == null) {
                continue;
            }
            if (parsedMethod.isSubResource()) {
                ClassDoc subResourceClassDoc = lookUpClassDoc(method.returnType());
                if (subResourceClassDoc != null) {
                    // delete class from the dictionary to handle recursive sub-resources
                    Collection<ClassDoc> shrunkClasses = new ArrayList<ClassDoc>(classes);
                    shrunkClasses.remove(classDoc);
                    // recursively parse the sub-resource class
                    ApiClassParser subResourceParser = new ApiClassParser(options, subResourceClassDoc, shrunkClasses, parsedMethod);
                    apis.addAll(subResourceParser.parse());
                    models.addAll(subResourceParser.models());
                }
                continue;
            }
            models.addAll(methodParser.models());

            String realPath = parsedMethod.getPath();
            Collection<Method> matchingMethods = apiMethods.get(realPath);
            if (matchingMethods == null) {
                matchingMethods = new ArrayList<Method>();
                apiMethods.put(realPath, matchingMethods);
            }
View Full Code Here

TOP

Related Classes of com.hypnoticocelot.jaxrs.doclet.model.Method

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.