1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.morph.reflect.reflectors;
17
18 import java.util.Iterator;
19
20 /**
21 * Exposes the information available in a java.util.Iterator.
22 *
23 * @author Matt Sgarlata
24 * @since Dec 5, 2004
25 */
26 public class IteratorReflector extends BaseContainerReflector {
27
28 private static final Class[] REFLECTABLE_TYPES = new Class[] {
29 Iterator.class
30 };
31
32 protected Class getContainedTypeImpl(Class clazz) throws Exception {
33 return Object.class;
34 }
35
36 protected Iterator getIteratorImpl(Object container) throws Exception {
37 return (Iterator) container;
38 }
39
40 protected Class[] getReflectableClassesImpl() {
41 return REFLECTABLE_TYPES;
42 }
43
44 }