Package org.drools.core.base.extractors
Class BaseBooleanClassFieldReader
- java.lang.Object
-
- org.drools.core.base.BaseClassFieldReader
-
- org.drools.core.base.extractors.BaseBooleanClassFieldReader
-
- All Implemented Interfaces:
Externalizable
,Serializable
,InternalReadAccessor
,ReadAccessor
public abstract class BaseBooleanClassFieldReader extends BaseClassFieldReader
A Base class for primitive boolean class field extractors. This class centralizes type conversions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description BaseBooleanClassFieldReader()
protected
BaseBooleanClassFieldReader(int index, Class<?> fieldType, ValueType valueType)
This constructor is not supposed to be used from outside the class hirarchy
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
getBooleanValue(InternalWorkingMemory workingMemory, Object object)
byte
getByteValue(InternalWorkingMemory workingMemory, Object object)
char
getCharValue(InternalWorkingMemory workingMemory, Object object)
double
getDoubleValue(InternalWorkingMemory workingMemory, Object object)
float
getFloatValue(InternalWorkingMemory workingMemory, Object object)
int
getHashCode(InternalWorkingMemory workingMemory, Object object)
int
getIntValue(InternalWorkingMemory workingMemory, Object object)
long
getLongValue(InternalWorkingMemory workingMemory, Object object)
Method
getNativeReadMethod()
short
getShortValue(InternalWorkingMemory workingMemory, Object object)
Object
getValue(InternalWorkingMemory workingMemory, Object object)
boolean
isNullValue(InternalWorkingMemory workingMemory, Object object)
-
Methods inherited from class org.drools.core.base.BaseClassFieldReader
equals, getBigDecimalValue, getBigDecimalValue, getBigIntegerValue, getBigIntegerValue, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getExtractToClass, getExtractToClassName, getFloatValue, getHashCode, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValueType, hashCode, isGlobal, isNullValue, isSelfReference, readExternal, setFieldType, setIndex, setValueType, writeExternal
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.spi.ReadAccessor
getNativeReadMethodName
-
-
-
-
Constructor Detail
-
BaseBooleanClassFieldReader
protected BaseBooleanClassFieldReader(int index, Class<?> fieldType, ValueType valueType)
This constructor is not supposed to be used from outside the class hirarchy- Parameters:
index
-fieldType
-valueType
-
-
BaseBooleanClassFieldReader
public BaseBooleanClassFieldReader()
-
-
Method Detail
-
getValue
public Object getValue(InternalWorkingMemory workingMemory, Object object)
-
getBooleanValue
public abstract boolean getBooleanValue(InternalWorkingMemory workingMemory, Object object)
-
getByteValue
public byte getByteValue(InternalWorkingMemory workingMemory, Object object)
-
getCharValue
public char getCharValue(InternalWorkingMemory workingMemory, Object object)
-
getDoubleValue
public double getDoubleValue(InternalWorkingMemory workingMemory, Object object)
-
getFloatValue
public float getFloatValue(InternalWorkingMemory workingMemory, Object object)
-
getIntValue
public int getIntValue(InternalWorkingMemory workingMemory, Object object)
-
getLongValue
public long getLongValue(InternalWorkingMemory workingMemory, Object object)
-
getShortValue
public short getShortValue(InternalWorkingMemory workingMemory, Object object)
-
isNullValue
public boolean isNullValue(InternalWorkingMemory workingMemory, Object object)
-
getNativeReadMethod
public Method getNativeReadMethod()
-
getHashCode
public int getHashCode(InternalWorkingMemory workingMemory, Object object)
-
-