chained.getVisitors().addAll(visitors);
return chained;
}
private List<AnnotationVisitor> list() {
BindingContext context;
if (elementType == ElementType.FIELD) {
context = new BindingContext(workbench, reporter, Type.getType(annotation), field,
elementType, index, visitor);
} else if (elementType == ElementType.TYPE) {
context = new BindingContext(workbench, reporter, Type.getType(annotation), clazz,
elementType, index, visitor);
} else {
// Parameter of method.
context = new BindingContext(workbench, reporter, Type.getType(annotation), method,
elementType, index, visitor);
}
List<Binding> predicates = registry.getBindings(annotation);