当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
ClassFieldInspector - JBoss RULES 3.0.6 API 英文版文档
org.drools.util.asm
Class ClassFieldInspector
java.lang.Object
org.drools.util.asm.ClassFieldInspector
public class ClassFieldInspector
- extends java.lang.Object
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.
Method Summary |
java.util.Map |
getFieldNames()
Return a mapping of the field "names" (ie bean property name convention)
to the numerical index by which they can be accessed. |
java.util.Map |
getFieldTypes()
|
java.util.Map |
getGetterMethods()
|
java.util.List |
getPropertyGetters()
Return a list in order of which the getters (and "is") methods were found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassFieldInspector
public ClassFieldInspector(java.lang.Class clazz)
throws java.io.IOException
- Parameters:
clazz
- The class that the fields to be shadowed are extracted for.
- Throws:
java.io.IOException
getPropertyGetters
public java.util.List getPropertyGetters()
- 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.
getFieldNames
public java.util.Map getFieldNames()
- Return a mapping of the field "names" (ie bean property name convention)
to the numerical index by which they can be accessed.
getFieldTypes
public java.util.Map getFieldTypes()
- Returns:
- A mapping of field types (unboxed).
getGetterMethods
public java.util.Map getGetterMethods()
- Returns:
- A mapping of methods for the getters.