|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.morph.reflect.reflectors.BaseReflector net.sf.morph.reflect.reflectors.BaseContainerReflector net.sf.morph.reflect.reflectors.CollectionReflector
public class CollectionReflector
A reflector for Collection
s.
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()
BaseReflector
Reflector.getReflectableClasses()
.
getReflectableClassesImpl
in class BaseReflector
protected java.lang.Class getContainedTypeImpl(java.lang.Class clazz) throws java.lang.Exception
getContainedTypeImpl
in class BaseContainerReflector
java.lang.Exception
protected int getSizeImpl(java.lang.Object container) throws java.lang.Exception
BaseReflector
SizableReflector.getSize(Object)
.
getSizeImpl
in class BaseReflector
java.lang.Exception
protected java.util.Iterator getIteratorImpl(java.lang.Object container) throws java.lang.Exception
BaseReflector
ContainerReflector.getIterator(Object)
.
getIteratorImpl
in class BaseContainerReflector
java.lang.Exception
protected java.lang.Object newInstanceImpl(java.lang.Class clazz, java.lang.Object parameters) throws java.lang.Exception
BaseReflector
InstantiatingReflector.newInstance(Class, Object)
.
Default implementation returns a new instance of the given class by
calling Class#newInstance())
.
newInstanceImpl
in class BaseReflector
java.lang.Exception
protected boolean addImpl(java.lang.Object container, java.lang.Object value)
BaseReflector
GrowableContainer.add(Object)
.
addImpl
in class BaseReflector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |