|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContainerReflector
Exposes information available in 'container-like' structures. A 'container-like' structure contains a certain number of objects, each of which has a particular type. Examples of 'container-like' objects include arrays and java.util.Collections.
Method Summary | |
---|---|
java.lang.Class |
getContainedType(java.lang.Class clazz)
Returns the type of the elements that are contained in objects of the given class. |
java.util.Iterator |
getIterator(java.lang.Object container)
Exposes an iterator over the contents of the container. |
Methods inherited from interface net.sf.morph.reflect.Reflector |
---|
getReflectableClasses, getWrapper |
Method Detail |
---|
java.lang.Class getContainedType(java.lang.Class clazz) throws ReflectionException
indexedClass
represents an
array of int
s,Integer.TYPE
should be
returned. This method should only be called if
Reflector#isReflectable(Class)
returns true
.
clazz
- the container's type
ReflectionException
- if container
is null or java.util.Iterator getIterator(java.lang.Object container) throws ReflectionException
container
- the container to iterate over
ReflectionException
- if container
is null
or
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |