public class DynamicGetter extends Object
Getter
class in that instead of creating the chain of methods when the getter is
instantiated it will instead get the actual method from the object passed in.| 构造器和说明 |
|---|
DynamicGetter(String ref,
Object obj)
Get the getter associated with the named reference.
|
public DynamicGetter(String ref, Object obj) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
ref - The reference for the getter.obj - The Object to build up the getter from.IllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic Class getBaseClass()
public Class getType()
getValue(Object)
method.public Object getValue(Object obj) throws IllegalAccessException, InvocationTargetException
Copyright © 2021. All rights reserved.