public class Accessor extends Object
| 构造器和说明 |
|---|
Accessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List |
getAccessorChain(String accessorRef,
Class clazz)
Get the Java field associated with the named field.
|
String |
getIndex() |
static Object |
getValueForIndex(Object data,
String index) |
static Object |
getValueFromAccessorChain(Object obj,
List chain) |
boolean |
isIndexCorrectForType(Class c) |
void |
setAccessor(Field f) |
void |
setAccessor(Method m) |
void |
setIndex(String index) |
public String getIndex()
public void setIndex(String index)
public void setAccessor(Field f)
public void setAccessor(Method m)
public boolean isIndexCorrectForType(Class c)
public static Object getValueFromAccessorChain(Object obj, List chain) throws IllegalAccessException, InvocationTargetException
public static List getAccessorChain(String accessorRef, Class clazz) throws IllegalArgumentException
accessorRef - The name of the field.clazz - The Class to get the field from.IllegalArgumentExceptionCopyright © 2021. All rights reserved.