public class MethodCache
extends java.lang.Object
Constructor and Description |
---|
MethodCache() |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getGetMethod(java.lang.Object object,
java.lang.String fieldName)
Returns the getter method for field on an object.
|
<T> java.lang.reflect.Method |
getSetMethod(java.lang.Object object,
java.lang.String fieldName,
java.lang.Class<?> argumentType)
Returns the setter method for the field on an object.
|
public java.lang.reflect.Method getGetMethod(java.lang.Object object, java.lang.String fieldName)
object
- the objectfieldName
- the field namejava.lang.NullPointerException
- if object or fieldName is nullSuperCsvReflectionException
- if the getter doesn't exist or is not visiblepublic <T> java.lang.reflect.Method getSetMethod(java.lang.Object object, java.lang.String fieldName, java.lang.Class<?> argumentType)
T
- object
- the objectfieldName
- the field nameargumentType
- the type to be passed to the setterjava.lang.NullPointerException
- if object, fieldName or fieldType is nullSuperCsvReflectionException
- if the setter doesn't exist or is not visibleCopyright © 2007-2012 Super CSV. All Rights Reserved.