MethodScanner methodScanner = new MethodScanner(); MethodTree methodTree = methodScanner.scan(methodElement, this.trees); methodTree.getBody();
/** * Constructor for the <code>MethodScanner</code> object. This is * used to create an object that will scan the specified class * such that all bean property methods can be paired under the * XML annotation specified within the class. * * @param detail this contains the details for the class scanned * @param support this contains various support functions */ public MethodScanner(Detail detail, Support support) throws Exception { this.factory = new MethodPartFactory(detail, support); this.write = new PartMap(); this.read = new PartMap(); this.support = support; this.detail = detail; this.scan(detail); }
/** * This is used to scan the declared methods within the specified * class. Each method will be checked to determine if it contains * an XML element and can be used as a <code>Contact</code> for * an entity within the object. * * @param detail this is one of the super classes for the object */ private void extract(Detail detail) throws Exception { List<MethodDetail> methods = detail.getMethods(); for(MethodDetail entry: methods) { Annotation[] list = entry.getAnnotations(); Method method = entry.getMethod(); for(Annotation label : list) { scan(method, label, list); } } }
/** * Constructor for the <code>MethodScanner</code> object. This is * used to create an object that will scan the specified class * such that all bean property methods can be paired under the * XML annotation specified within the class. * * @param detail this contains the details for the class scanned * @param support this contains various support functions */ public MethodScanner(Detail detail, Support support) throws Exception { this.factory = new MethodPartFactory(detail, support); this.write = new PartMap(); this.read = new PartMap(); this.support = support; this.detail = detail; this.scan(detail); }
/** * Constructor for the <code>MethodScanner</code> object. This is * used to create an object that will scan the specified class * such that all bean property methods can be paired under the * XML annotation specified within the class. * * @param detail this contains the details for the class scanned * @param support this contains various support functions */ public MethodScanner(Detail detail, Support support) throws Exception { this.factory = new MethodPartFactory(detail, support); this.write = new PartMap(); this.read = new PartMap(); this.support = support; this.detail = detail; this.scan(detail); }
/** * This is used to scan the declared methods within the specified * class. Each method will be checked to determine if it contains * an XML element and can be used as a <code>Contact</code> for * an entity within the object. * * @param detail this is one of the super classes for the object */ private void extract(Detail detail) throws Exception { List<MethodDetail> methods = detail.getMethods(); for(MethodDetail entry: methods) { Annotation[] list = entry.getAnnotations(); Method method = entry.getMethod(); for(Annotation label : list) { scan(method, label, list); } } }
/** * This is used to scan the declared methods within the specified * class. Each method will be checked to determine if it contains * an XML element and can be used as a <code>Contact</code> for * an entity within the object. * * @param detail this is one of the super classes for the object */ private void extract(Detail detail) throws Exception { List<MethodDetail> methods = detail.getMethods(); for(MethodDetail entry: methods) { Annotation[] list = entry.getAnnotations(); Method method = entry.getMethod(); for(Annotation label : list) { scan(method, label, list); } } }