net.sf.morph.reflect.reflectors
Class ListReflector

java.lang.Object
  extended by net.sf.morph.reflect.reflectors.BaseReflector
      extended by net.sf.morph.reflect.reflectors.BaseContainerReflector
          extended by net.sf.morph.reflect.reflectors.CollectionReflector
              extended by net.sf.morph.reflect.reflectors.SetReflector
                  extended by net.sf.morph.reflect.reflectors.SortedSetReflector
                      extended by net.sf.morph.reflect.reflectors.ListReflector
All Implemented Interfaces:
net.sf.composite.Component, BeanReflector, ContainerReflector, DecoratedReflector, GrowableContainerReflector, IndexedContainerReflector, InstantiatingReflector, MutableIndexedContainerReflector, Reflector, SizableReflector

public class ListReflector
extends SortedSetReflector
implements IndexedContainerReflector, MutableIndexedContainerReflector, GrowableContainerReflector, InstantiatingReflector, BeanReflector

A reflector for Lists.

Since:
Nov 26, 2004
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.morph.reflect.reflectors.BaseReflector
log
 
Fields inherited from interface net.sf.morph.reflect.BeanReflector
IMPLICIT_PROPERTY_CLASS, IMPLICIT_PROPERTY_PROPERTY_NAMES, IMPLICIT_PROPERTY_THIS
 
Constructor Summary
ListReflector()
           
 
Method Summary
 java.lang.Class[] getReflectableClassesImpl()
          Implementation of Reflector.getReflectableClasses().
protected  java.lang.Object newInstanceImpl(java.lang.Class interfaceClass, java.lang.Object parameters)
          Implementation of InstantiatingReflector.newInstance(Class, Object).
protected  java.lang.Object setImpl(java.lang.Object container, int index, java.lang.Object propertyValue)
          Implementation of MutableIndexedContainerReflector.set(Object, int, Object).
 
Methods inherited from class net.sf.morph.reflect.reflectors.SortedSetReflector
getImpl
 
Methods inherited from class net.sf.morph.reflect.reflectors.CollectionReflector
addImpl, getCollection, getContainedTypeImpl, getIteratorImpl, getSizeImpl
 
Methods inherited from class net.sf.morph.reflect.reflectors.BaseReflector
add, checkIndex, checkIsReflectable, createWrapperInvocationHandler, get, get, getContainedType, getImpl, getIterator, getPropertyNames, getPropertyNamesImpl, getReflectableCallCache, getReflectableClasses, getReflectorName, getSize, getType, getTypeImpl, getWrapper, getWrapperImpl, initialize, initializeImpl, isCachingIsReflectableCalls, isInitialized, isPerformingLogging, isReadable, isReadableImpl, isReflectable, isReflectable, isReflectableImpl, isReflectableImpl, isStrictlyTyped, isValidIndex, isWrappingRuntimeExceptions, isWriteable, isWriteableImpl, newInstance, newInstanceImpl, set, set, setCachingIsReflectableCalls, setImpl, setInitialized, setReflectableCallCache, setReflectorName, toString
 
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.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.MutableIndexedContainerReflector
set
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.GrowableContainerReflector
add
 
Methods inherited from interface net.sf.morph.reflect.InstantiatingReflector
newInstance
 
Methods inherited from interface net.sf.morph.reflect.BeanReflector
get, getPropertyNames, getType, isReadable, isWriteable, set
 

Constructor Detail

ListReflector

public ListReflector()
Method Detail

newInstanceImpl

protected java.lang.Object newInstanceImpl(java.lang.Class interfaceClass,
                                           java.lang.Object parameters)
                                    throws java.lang.Exception
Description copied from class: BaseReflector
Implementation of InstantiatingReflector.newInstance(Class, Object). Default implementation returns a new instance of the given class by calling Class#newInstance()).

Overrides:
newInstanceImpl in class SortedSetReflector
Throws:
java.lang.Exception

getReflectableClassesImpl

public java.lang.Class[] getReflectableClassesImpl()
Description copied from class: BaseReflector
Implementation of Reflector.getReflectableClasses().

Overrides:
getReflectableClassesImpl in class SortedSetReflector

setImpl

protected java.lang.Object setImpl(java.lang.Object container,
                                   int index,
                                   java.lang.Object propertyValue)
                            throws java.lang.Exception
Description copied from class: BaseReflector
Implementation of MutableIndexedContainerReflector.set(Object, int, Object).

Overrides:
setImpl in class BaseReflector
Throws:
java.lang.Exception


Copyright © 2004-2008.