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

FieldAccessor (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.util.asm
Interface FieldAccessor

All Superinterfaces:
Serializable

Deprecated. use ClassFieldExtractor instead

public interface FieldAccessor
extends 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.

Author:
Michael Neale, "Jeff Brown"

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

Method Detail

getFieldByIndex

Object getFieldByIndex(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.


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.