| java.lang.Object org.drools.util.asm.ClassFieldInspector
ClassFieldInspector | public class ClassFieldInspector (Code) | | Visit a POJO user class, and extract the property getter methods that are public, in the
order in which they are declared actually in the class itself (not using introspection).
This may be enhanced in the future to allow annotations or perhaps external meta data
configure the order of the indexes, as this may provide fine tuning options in special cases.
author: Michael Neale |
Inner Class :static class ClassFieldVisitor implements ClassVisitor | |
Method Summary | |
public Map | getFieldNames() Return a mapping of the field "names" (ie bean property name convention)
to the numerical index by which they can be accessed. | public Map | getFieldTypes() | public Map | getGetterMethods() A mapping of methods for the getters. | public List | getPropertyGetters() Return a list in order of which the getters (and "is") methods were found. |
ClassFieldInspector | public ClassFieldInspector(Class clazz) throws IOException(Code) | | Parameters: clazz - The class that the fields to be shadowed are extracted for. throws: IOException - |
ClassFieldInspector | public ClassFieldInspector(Class clazz, boolean includeFinalMethods) throws IOException(Code) | | |
getFieldNames | public Map getFieldNames()(Code) | | Return a mapping of the field "names" (ie bean property name convention)
to the numerical index by which they can be accessed.
|
getFieldTypes | public Map getFieldTypes()(Code) | | A mapping of field types (unboxed). |
getGetterMethods | public Map getGetterMethods()(Code) | | A mapping of methods for the getters. |
getPropertyGetters | public List getPropertyGetters()(Code) | | Return a list in order of which the getters (and "is") methods were found.
This should only be done once when compiling a rulebase ideally.
|
|
|