public interface IExtractor<T>
| Modifier and Type | Method and Description |
|---|---|
int |
getFieldIndex(java.lang.String fieldName) |
java.lang.String |
getFieldName(int i) |
java.lang.Class<?> |
getFieldType(int i) |
java.lang.Object |
getFieldValue(T object,
int i) |
int |
getNumFields() |
ISerializer<T> |
getSerializer() |
java.lang.Class<T> |
getType() |
boolean |
isDefaultFieldValue(int index,
java.lang.Object fieldValue) |
boolean |
setFieldValue(T object,
int i,
java.lang.Object fieldValue) |
java.lang.Class<T> getType()
int getNumFields()
java.lang.Class<?> getFieldType(int i)
i - the index of the fieldjava.lang.String getFieldName(int i)
i - the index of the fieldjava.lang.IndexOutOfBoundsException - if the index is not in the range [0;getNumFields()[int getFieldIndex(java.lang.String fieldName)
fieldName - the name of the fieldboolean isDefaultFieldValue(int index,
java.lang.Object fieldValue)
i - index of the fieldvalue - a valuejava.lang.Object getFieldValue(T object, int i)
object - source object to get the field fromi - index of the fieldjava.lang.IndexOutOfBoundsException - if the index is not in the range [0;getNumFields()[boolean setFieldValue(T object, int i, java.lang.Object fieldValue) throws java.lang.Exception
object - destination object to set the field toi - index of the fieldvalue - value of the field to setjava.lang.ExceptionISerializer<T> getSerializer()
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com