|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.morph.reflect.reflectors.BaseReflector
net.sf.morph.reflect.reflectors.BaseContainerReflector
net.sf.morph.reflect.reflectors.CollectionReflector
public class CollectionReflector
A reflector for Collections.
| Field Summary |
|---|
| Fields inherited from class net.sf.morph.reflect.reflectors.BaseReflector |
|---|
log |
| Fields inherited from interface net.sf.morph.reflect.SizableReflector |
|---|
IMPLICIT_PROPERTY_SIZE |
| Constructor Summary | |
|---|---|
CollectionReflector()
|
|
| Method Summary | |
|---|---|
protected boolean |
addImpl(java.lang.Object container,
java.lang.Object value)
Implementation of GrowableContainer.add(Object). |
protected java.util.Collection |
getCollection(java.lang.Object container)
|
protected java.lang.Class |
getContainedTypeImpl(java.lang.Class clazz)
TODO JDK 1.5 (generics) compatibility |
protected java.util.Iterator |
getIteratorImpl(java.lang.Object container)
Implementation of ContainerReflector.getIterator(Object). |
java.lang.Class[] |
getReflectableClassesImpl()
Implementation of Reflector.getReflectableClasses(). |
protected int |
getSizeImpl(java.lang.Object container)
Implementation of SizableReflector.getSize(Object). |
protected java.lang.Object |
newInstanceImpl(java.lang.Class clazz,
java.lang.Object parameters)
Implementation of InstantiatingReflector.newInstance(Class, Object). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.morph.reflect.SizableReflector |
|---|
getSize |
| Methods inherited from interface net.sf.morph.reflect.InstantiatingReflector |
|---|
newInstance |
| Methods inherited from interface net.sf.morph.reflect.GrowableContainerReflector |
|---|
add |
| Constructor Detail |
|---|
public CollectionReflector()
| Method Detail |
|---|
protected java.util.Collection getCollection(java.lang.Object container)
public java.lang.Class[] getReflectableClassesImpl()
BaseReflectorReflector.getReflectableClasses().
getReflectableClassesImpl in class BaseReflector
protected java.lang.Class getContainedTypeImpl(java.lang.Class clazz)
throws java.lang.Exception
getContainedTypeImpl in class BaseContainerReflectorjava.lang.Exception
protected int getSizeImpl(java.lang.Object container)
throws java.lang.Exception
BaseReflectorSizableReflector.getSize(Object).
getSizeImpl in class BaseReflectorjava.lang.Exception
protected java.util.Iterator getIteratorImpl(java.lang.Object container)
throws java.lang.Exception
BaseReflectorContainerReflector.getIterator(Object).
getIteratorImpl in class BaseContainerReflectorjava.lang.Exception
protected java.lang.Object newInstanceImpl(java.lang.Class clazz,
java.lang.Object parameters)
throws java.lang.Exception
BaseReflectorInstantiatingReflector.newInstance(Class, Object).
Default implementation returns a new instance of the given class by
calling Class#newInstance()).
newInstanceImpl in class BaseReflectorjava.lang.Exception
protected boolean addImpl(java.lang.Object container,
java.lang.Object value)
BaseReflectorGrowableContainer.add(Object).
addImpl in class BaseReflector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||