org.drools.base
Class BaseClassFieldWriter

java.lang.Object
  extended by org.drools.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
  BaseClassFieldWriter()
           
  BaseClassFieldWriter(Class<?> clazz, String fieldName)
          This is the constructor to be used
protected BaseClassFieldWriter(int index, Class<?> fieldType, ValueType valueType)
          This constructor is not supposed to be used from outside the class hirarchy
 
Method Summary
 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.spi.WriteAccessor
getNativeWriteMethod, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setValue
 

Constructor Detail

BaseClassFieldWriter

public BaseClassFieldWriter()

BaseClassFieldWriter

protected BaseClassFieldWriter(int index,
                               Class<?> fieldType,
                               ValueType valueType)
This constructor is not supposed to be used from outside the class hirarchy

Parameters:
index -
fieldType -
valueType -

BaseClassFieldWriter

public BaseClassFieldWriter(Class<?> clazz,
                            String fieldName)
This is the constructor to be used

Parameters:
clazz -
fieldName -
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getIndex

public int getIndex()
Specified by:
getIndex in interface WriteAccessor

getFieldType

public Class<?> getFieldType()
Specified by:
getFieldType in interface WriteAccessor

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface WriteAccessor

setBigDecimalValue

public void setBigDecimalValue(Object bean,
                               BigDecimal value)
Specified by:
setBigDecimalValue in interface WriteAccessor

setBigIntegerValue

public void setBigIntegerValue(Object bean,
                               BigInteger value)
Specified by:
setBigIntegerValue in interface WriteAccessor

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.