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()protectedBaseClassFieldWriter(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 booleanequals(Object object)Class<?>getFieldType()intgetIndex()ValueTypegetValueType()inthashCode()voidreadExternal(ObjectInput in)voidsetBigDecimalValue(Object bean, BigDecimal value)voidsetBigIntegerValue(Object bean, BigInteger value)voidwriteExternal(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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceWriteAccessor
-
getFieldType
public Class<?> getFieldType()
- Specified by:
getFieldTypein interfaceWriteAccessor
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceWriteAccessor
-
setBigDecimalValue
public void setBigDecimalValue(Object bean, BigDecimal value)
- Specified by:
setBigDecimalValuein interfaceWriteAccessor
-
setBigIntegerValue
public void setBigIntegerValue(Object bean, BigInteger value)
- Specified by:
setBigIntegerValuein interfaceWriteAccessor
-
-