org.drools.base
Class BaseClassFieldExtractor

java.lang.Object
  extended byorg.drools.base.BaseClassFieldExtractor
All Implemented Interfaces:
Extractor, FieldExtractor, java.io.Serializable

public abstract class BaseClassFieldExtractor
extends java.lang.Object
implements FieldExtractor

This is the supertype for the ASM generated classes for accessing a field.

See Also:
Serialized Form
 

Constructor Summary
BaseClassFieldExtractor(java.lang.Class clazz, java.lang.String fieldName)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
protected  java.lang.Class getFieldType()
           
 int getIndex()
           
 ObjectType getObjectType()
           
abstract  java.lang.Object getValue(java.lang.Object object)
          This will be implemented by the dynamic classes
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseClassFieldExtractor

public BaseClassFieldExtractor(java.lang.Class clazz,
                               java.lang.String fieldName)
Method Detail

getIndex

public int getIndex()
Specified by:
getIndex in interface FieldExtractor

getFieldType

protected java.lang.Class getFieldType()

getValue

public abstract java.lang.Object getValue(java.lang.Object object)
This will be implemented by the dynamic classes

Specified by:
getValue in interface Extractor

getObjectType

public ObjectType getObjectType()
Specified by:
getObjectType in interface Extractor

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()