Class BeansAccess<T>
java.lang.Object
net.minidev.asm.BeansAccess<T>
Allow access reflect field using runtime generated accessor. BeansAccessor is
faster than java.lang.reflect.Method.invoke()
- Author:
- uriel Chemouni
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <P> BeansAccess<P> return the BeansAccess corresponding to a typestatic <P> BeansAccess<P> get(Class<P> type, FieldFilter filter) return the BeansAccess corresponding to a typeabstract Objectget field value by field indexget field value by fieldnameAccessor[]intReturns the index of the field accessor.getMap()abstract Tcreate a new targeted objectabstract voidset field value by field indexvoidset field value by fieldnameprotected voidsetAccessor(Accessor[] accs)
-
Constructor Details
-
BeansAccess
public BeansAccess()
-
-
Method Details
-
setAccessor
-
getMap
-
getAccessors
-
get
return the BeansAccess corresponding to a type- Parameters:
type- to be access- Returns:
- the BeansAccess
-
get
return the BeansAccess corresponding to a type- Parameters:
type- to be access- Returns:
- the BeansAccess
-
set
-
get
-
newInstance
create a new targeted object -
set
-
get
-
getIndex
Returns the index of the field accessor.
-