Package org.drools.core.base
Class BaseClassFieldWriter
- java.lang.Object
-
- org.drools.core.base.BaseClassFieldWriter
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,WriteAccessor
public abstract class BaseClassFieldWriter extends java.lang.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, java.lang.Class<?> fieldType, ValueType valueType)This constructor is not supposed to be used from outside the class hirarchyBaseClassFieldWriter(java.lang.Class<?> clazz, java.lang.String fieldName)This is the constructor to be used
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.lang.Class<?>getFieldType()intgetIndex()ValueTypegetValueType()inthashCode()voidreadExternal(java.io.ObjectInput in)voidwriteExternal(java.io.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.rule.accessor.WriteAccessor
getNativeWriteMethod, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setValue
-
-
-
-
Constructor Detail
-
BaseClassFieldWriter
public BaseClassFieldWriter()
-
BaseClassFieldWriter
protected BaseClassFieldWriter(int index, java.lang.Class<?> fieldType, ValueType valueType)This constructor is not supposed to be used from outside the class hirarchy
-
BaseClassFieldWriter
public BaseClassFieldWriter(java.lang.Class<?> clazz, java.lang.String fieldName)This is the constructor to be used
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceWriteAccessor
-
getFieldType
public java.lang.Class<?> getFieldType()
- Specified by:
getFieldTypein interfaceWriteAccessor
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceWriteAccessor
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
-