Class BaseClassFieldWriter

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, org.drools.base.rule.accessor.WriteAccessor

    public abstract class BaseClassFieldWriter
    extends java.lang.Object
    implements org.drools.base.rule.accessor.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, java.lang.Class<?> fieldType, org.drools.base.base.ValueType valueType)
      This constructor is not supposed to be used from outside the class hirarchy
        BaseClassFieldWriter​(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
      boolean equals​(java.lang.Object object)  
      java.lang.Class<?> getFieldType()  
      int getIndex()  
      org.drools.base.base.ValueType getValueType()  
      int hashCode()  
      void readExternal​(java.io.ObjectInput in)  
      void writeExternal​(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.base.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,
                                       org.drools.base.base.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:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getIndex

        public int getIndex()
        Specified by:
        getIndex in interface org.drools.base.rule.accessor.WriteAccessor
      • getFieldType

        public java.lang.Class<?> getFieldType()
        Specified by:
        getFieldType in interface org.drools.base.rule.accessor.WriteAccessor
      • getValueType

        public org.drools.base.base.ValueType getValueType()
        Specified by:
        getValueType in interface org.drools.base.rule.accessor.WriteAccessor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object