} 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) {
continue;
}
// see which resource path to use for the method, if its got a resourceTag then use that
// otherwise use the root path
String resourcePath = buildResourcePath(classResourcePath, method);
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>(this.classes);
shrunkClasses.remove(currentClassDoc);