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

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


org.drools.base
Class ClassFieldExtractor

java.lang.Object
  extended by org.drools.base.ClassFieldExtractor
All Implemented Interfaces:
Serializable, Extractor, FieldExtractor

public class ClassFieldExtractor
extends Object
implements FieldExtractor

This provides access to fields, and what their numerical index/object type is. This is basically a wrapper class around dynamically generated subclasses of BaseClassFieldExtractor, which allows serialization by regenerating the accessor classes when needed.

Author:
Michael Neale
See Also:
Serialized Form

Constructor Summary
ClassFieldExtractor(Class clazz, String fieldName)
           
ClassFieldExtractor(Class clazz, String fieldName, ClassLoader classLoader)
           
 
Method Summary
 boolean equals(Object object)
           
 boolean getBooleanValue(Object object)
           
 byte getByteValue(Object object)
           
 char getCharValue(Object object)
           
 double getDoubleValue(Object object)
           
 Class getExtractToClass()
           
 String getFieldName()
           
 float getFloatValue(Object object)
           
 int getHashCode(Object object)
           
 int getIndex()
           
 int getIntValue(Object object)
           
 long getLongValue(Object object)
           
 Method getNativeReadMethod()
           
 short getShortValue(Object object)
           
 Object getValue(Object object)
           
 ValueType getValueType()
           
 int hashCode()
           
 void init(ClassLoader classLoader)
           
 boolean isNullValue(Object object)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassFieldExtractor

public ClassFieldExtractor(Class clazz,
                           String fieldName)

ClassFieldExtractor

public ClassFieldExtractor(Class clazz,
                           String fieldName,
                           ClassLoader classLoader)
Method Detail

init

public void init(ClassLoader classLoader)

getIndex

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

getFieldName

public String getFieldName()

getValue

public Object getValue(Object object)
Specified by:
getValue in interface Extractor

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface Extractor

getExtractToClass

public Class getExtractToClass()
Specified by:
getExtractToClass in interface Extractor

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

getBooleanValue

public boolean getBooleanValue(Object object)
Specified by:
getBooleanValue in interface Extractor

getByteValue

public byte getByteValue(Object object)
Specified by:
getByteValue in interface Extractor

getCharValue

public char getCharValue(Object object)
Specified by:
getCharValue in interface Extractor

getDoubleValue

public double getDoubleValue(Object object)
Specified by:
getDoubleValue in interface Extractor

getFloatValue

public float getFloatValue(Object object)
Specified by:
getFloatValue in interface Extractor

getIntValue

public int getIntValue(Object object)
Specified by:
getIntValue in interface Extractor

getLongValue

public long getLongValue(Object object)
Specified by:
getLongValue in interface Extractor

getShortValue

public short getShortValue(Object object)
Specified by:
getShortValue in interface Extractor

isNullValue

public boolean isNullValue(Object object)
Specified by:
isNullValue in interface Extractor

getNativeReadMethod

public Method getNativeReadMethod()
Specified by:
getNativeReadMethod in interface Extractor

getHashCode

public int getHashCode(Object object)
Specified by:
getHashCode in interface Extractor


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