1 package org.robolectric.annotation.processing; 2 3 import java.util.Collection; 4 import java.util.List; 5 import java.util.Map; 6 import java.util.TreeMap; 7 8 public class DocumentedType extends DocumentedElement { 9 public final Map<String, DocumentedMethod> methods = new TreeMap<>(); 10 11 public List<String> imports; 12 13 DocumentedType(String name) { 14 super(name); 15 } 16 17 public DocumentedMethod getDocumentedMethod(String desc) { 18 DocumentedMethod documentedMethod = methods.get(desc); 19 if (documentedMethod == null) { 20 documentedMethod = new DocumentedMethod(desc); 21 methods.put(desc, documentedMethod); 22 } 23 return documentedMethod; 24 } 25 26 public Collection<DocumentedMethod> getMethods() { 27 return methods.values(); 28 } 29 } 30