站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 3.0.6 API 英文版文档

FieldAccessor - JBoss RULES 3.0.6 API 英文版文档


org.drools.util.asm
Interface FieldAccessor

All Superinterfaces:
java.io.Serializable

Deprecated. use ClassFieldExtractor instead

public interface FieldAccessor
extends java.io.Serializable

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.


Method Summary
 java.lang.Object getFieldByIndex(java.lang.Object obj, int idx)
          Deprecated. Returns the "field" corresponding to the order in which it is in the object (class).
 

Method Detail

getFieldByIndex

java.lang.Object getFieldByIndex(java.lang.Object obj,
                                 int idx)
Deprecated. 
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.
idx - The index of the "field". Refer to FieldAccessorMap to get the mapping of the names of the "fields" to the index value to use for fast lookup.
Returns:
Appropriate return type. Primitives are boxed to the corresponding type.