当前页面:
在线文档首页 >
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
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
ClassFieldExtractor
public ClassFieldExtractor(Class clazz,
String fieldName)
ClassFieldExtractor
public ClassFieldExtractor(Class clazz,
String fieldName,
ClassLoader classLoader)
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.