/** * Iterates over the parameter annotations, calling delegate.processParameterAnnotations for each * @param delegate the delegate to call */ public void iterateParameterAnnotations(ParameterAnnotationIteratorDelegate delegate) { for (int i=0; i<parameterAnnotationMethods.length; i++) { try { delegate.processParameterAnnotations(parameterAnnotationMethods[i], parameterAnnotations[i]); } catch (Exception ex) { throw addExceptionContext(ExceptionWithContext.withContext(ex, "Error occured while processing parameter annotations for method: " + parameterAnnotationMethods[i].getMethodString())); } } }
/** * Iterates over the field annotations, calling delegate.processFieldAnnotations for each * @param delegate the delegate to call */ public void iterateFieldAnnotations(FieldAnnotationIteratorDelegate delegate) { for (int i=0; i<fieldAnnotationFields.length; i++) { try { delegate.processFieldAnnotations(fieldAnnotationFields[i], fieldAnnotations[i]); } catch (Exception ex) { throw addExceptionContext(ExceptionWithContext.withContext(ex, "Error occured while processing field annotations for field: " + fieldAnnotationFields[i].getFieldString())); } } }
/** * Iterates over the method annotations, calling delegate.processMethodAnnotations for each * @param delegate the delegate to call */ public void iterateMethodAnnotations(MethodAnnotationIteratorDelegate delegate) { for (int i=0; i<methodAnnotationMethods.length; i++) { try { delegate.processMethodAnnotations(methodAnnotationMethods[i], methodAnnotations[i]); } catch (Exception ex) { throw addExceptionContext(ExceptionWithContext.withContext(ex, "Error occured while processing method annotations for method: " + methodAnnotationMethods[i].getMethodString())); } } }