ariba.util.fieldvalue
Class ReflectionMethodGetter
java.lang.Object
ariba.util.fieldvalue.BaseAccessor
ariba.util.fieldvalue.ReflectionMethodAccessor
ariba.util.fieldvalue.ReflectionMethodGetter
- All Implemented Interfaces:
- FieldValueAccessor, FieldValueGetter
- Direct Known Subclasses:
- ClassExtensionGetter
public class ReflectionMethodGetter
- extends ReflectionMethodAccessor
- implements FieldValueGetter
The ReflectionMethodGetter is a wrapper for java.lang.reflect.Method
and provides a uniform interface so that users needn't know if the accesor
they're dealing with is either a Method or a Field.
Field Summary |
static java.lang.Object[] |
EmptyArray
|
Method Summary |
java.lang.Object |
getValue(java.lang.Object target)
Invokes the underlying reflection Method on the target and returns
the resulting value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EmptyArray
public static final java.lang.Object[] EmptyArray
getValue
public java.lang.Object getValue(java.lang.Object target)
- Invokes the underlying reflection Method on the target and returns
the resulting value.
- Specified by:
getValue
in interface FieldValueGetter
- Parameters:
target
- the object on which the underlying Method will be invoked to get the value from
- Returns:
- the value of invoking the underlying method on target
toString
public java.lang.String toString()
- Overrides:
toString
in class ReflectionMethodAccessor
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.