public class Getter extends Object
| 构造器和说明 |
|---|
Getter(String ref,
Class clazz)
Get the getter associated with the named reference.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAccessor() |
Class |
getBaseClass() |
static Method |
getNoParmJavaGetMethod(String method,
Class c) |
Class |
getType()
Get the class of the type of object we would return from the
getValue(Object)
method. |
Object |
getValue(Object obj) |
String |
toString() |
public Getter(String ref, Class clazz) throws IllegalArgumentException
ref - The reference for the getter.clazz - The Class to get the field from.IllegalArgumentExceptionpublic Class getBaseClass()
public Class getType()
getValue(Object)
method.public Object getValue(Object obj) throws IllegalAccessException, InvocationTargetException
public String getAccessor()
Copyright © 2021. All rights reserved.