| org.drools.util.asm.FieldAccessor
FieldAccessor | public interface FieldAccessor extends Serializable(Code) | | This provides "field" access to getters on a given class.
Implementations are generated into byte code (using a switchtable)
when a new class is encountered.
author: Michael Neale author: "Jeff Brown" |
Method Summary | |
public Object | getFieldByIndex(Object obj, int idx) Returns the "field" corresponding to the order in which it is in the object (class).
Parameters: obj - The object for the field to be extracted from. Parameters: idx - The index of the "field". |
getFieldByIndex | public Object getFieldByIndex(Object obj, int idx)(Code) | | Returns the "field" corresponding to the order in which it is in the object (class).
Parameters: obj - The object for the field to be extracted from. Parameters: idx - The index of the "field". Refer to FieldAccessorMap to get the mappingof the names of the "fields" to the index value to use for fast lookup. Appropriate return type. Primitives are boxed to the corresponding type. |
|
|