Class BackFillArray

  • All Implemented Interfaces:
    BackFillReference

    public class BackFillArray
    extends java.lang.Object
    implements BackFillReference
    Backfill reference item, used for filling in forward references as members of arrays. Each item holds both the array containing the reference and the offset in the array.
    Version:
    1.0
    Author:
    Dennis M. Sosnoski
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object[] m_array
      Array containing reference.
      private int m_index
      Reference offset within array.
    • Constructor Summary

      Constructors 
      Constructor Description
      BackFillArray​(int index, java.lang.Object[] array)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void backfill​(java.lang.Object obj)
      Define referenced object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_array

        private java.lang.Object[] m_array
        Array containing reference.
      • m_index

        private int m_index
        Reference offset within array.
    • Constructor Detail

      • BackFillArray

        public BackFillArray​(int index,
                             java.lang.Object[] array)
        Constructor. Saves the information for filling the reference once the associated object is defined.
        Parameters:
        index - reference offset within array
        array - array containing the reference
    • Method Detail

      • backfill

        public void backfill​(java.lang.Object obj)
        Define referenced object. This method is called by the framework when the forward-referenced item is defined.
        Specified by:
        backfill in interface BackFillReference
        Parameters:
        obj - referenced object