/** * This is used to acquire a list of <code>Contact</code> objects * that represent the annotated methods in a type. The entire * class hierarchy is scanned for annotated methods. Caching of * the contact list is done to increase performance. * * @param type this is the type to scan for annotated methods * @param detail this is the type to scan for annotated methods * * @return this returns a list of the annotated methods */ private ContactList getMethods(Class type, Detail detail) throws Exception { ContactList list = new MethodScanner(detail, support); if(detail != null) { methods.cache(type, list); } return list; } }
/** * This is used to acquire a list of <code>Contact</code> objects * that represent the annotated methods in a type. The entire * class hierarchy is scanned for annotated methods. Caching of * the contact list is done to increase performance. * * @param type this is the type to scan for annotated methods * @param detail this is the type to scan for annotated methods * * @return this returns a list of the annotated methods */ private ContactList getMethods(Class type, Detail detail) throws Exception { ContactList list = new MethodScanner(detail, support); if(detail != null) { methods.cache(type, list); } return list; } }
/** * This is used to acquire a list of <code>Contact</code> objects * that represent the annotated methods in a type. The entire * class hierarchy is scanned for annotated methods. Caching of * the contact list is done to increase performance. * * @param type this is the type to scan for annotated methods * @param detail this is the type to scan for annotated methods * * @return this returns a list of the annotated methods */ private ContactList getMethods(Class type, Detail detail) throws Exception { ContactList list = new MethodScanner(detail, support); if(detail != null) { methods.cache(type, list); } return list; } }
MethodScanner methodScanner = new MethodScanner(); MethodTree methodTree = methodScanner.scan(methodElement, this.trees); methodTree.getBody();