org.compass.core.accessor
Class DirectPropertyAccessor.DirectGetter

java.lang.Object
  extended by org.compass.core.accessor.DirectPropertyAccessor.DirectGetter
All Implemented Interfaces:
Serializable, Getter
Enclosing class:
DirectPropertyAccessor

public static final class DirectPropertyAccessor.DirectGetter
extends Object
implements Getter

See Also:
Serialized Form

Constructor Summary
DirectPropertyAccessor.DirectGetter(Field field, Class clazz, String name)
           
 
Method Summary
 Object get(Object target)
          Get the property value from the given instance
 Field getField()
           
 Type getGenericReturnType()
          Returns the generic return type of the return type.
 String getName()
          Get the property name
 Class getReturnType()
          Get the declared Java type
(package private)  Object readResolve()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectPropertyAccessor.DirectGetter

DirectPropertyAccessor.DirectGetter(Field field,
                                    Class clazz,
                                    String name)
Method Detail

get

public Object get(Object target)
           throws CompassException
Description copied from interface: Getter
Get the property value from the given instance

Specified by:
get in interface Getter
Throws:
CompassException

getName

public String getName()
Description copied from interface: Getter
Get the property name

Specified by:
getName in interface Getter

getReturnType

public Class getReturnType()
Description copied from interface: Getter
Get the declared Java type

Specified by:
getReturnType in interface Getter

getGenericReturnType

public Type getGenericReturnType()
Description copied from interface: Getter
Returns the generic return type of the return type. Can return null if not known or not set.

Specified by:
getGenericReturnType in interface Getter
See Also:
Field.getGenericType(), Method.getGenericReturnType()

getField

public Field getField()

readResolve

Object readResolve()

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2008 The Compass Project.