Package org.drools.core.base
Class BaseClassFieldWriter
- java.lang.Object
-
- org.drools.core.base.BaseClassFieldWriter
-
- All Implemented Interfaces:
Externalizable
,Serializable
,WriteAccessor
- Direct Known Subclasses:
BaseBooleanClassFieldWriter
,BaseByteClassFieldWriter
,BaseCharClassFieldWriter
,BaseDoubleClassFieldWriter
,BaseFloatClassFieldWriter
,BaseIntClassFieldWriter
,BaseLongClassFieldWriter
,BaseObjectClassFieldWriter
,BaseShortClassFieldWriter
public abstract class BaseClassFieldWriter extends Object implements WriteAccessor
This is the supertype for the ASM generated classes for writing values into fields.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description BaseClassFieldWriter()
protected
BaseClassFieldWriter(int index, Class<?> fieldType, ValueType valueType)
This constructor is not supposed to be used from outside the class hirarchyBaseClassFieldWriter(Class<?> clazz, String fieldName)
This is the constructor to be used
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Class<?>
getFieldType()
int
getIndex()
ValueType
getValueType()
int
hashCode()
void
readExternal(ObjectInput in)
void
setBigDecimalValue(Object bean, BigDecimal value)
void
setBigIntegerValue(Object bean, BigInteger value)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.spi.WriteAccessor
getNativeWriteMethod, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setValue
-
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceWriteAccessor
-
getFieldType
public Class<?> getFieldType()
- Specified by:
getFieldType
in interfaceWriteAccessor
-
getValueType
public ValueType getValueType()
- Specified by:
getValueType
in interfaceWriteAccessor
-
setBigDecimalValue
public void setBigDecimalValue(Object bean, BigDecimal value)
- Specified by:
setBigDecimalValue
in interfaceWriteAccessor
-
setBigIntegerValue
public void setBigIntegerValue(Object bean, BigInteger value)
- Specified by:
setBigIntegerValue
in interfaceWriteAccessor
-
-