org.drools.core.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.


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-2012 JBoss by Red Hat. All Rights Reserved.