Class AbstractFatherBlock

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Block[] childBlocks  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFatherBlock​(Block[] childBlocks)
      Creates the AbstractFatherBlock.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract void after​(Sink sink)
      method called after traversing the childs
      (package private) abstract void before​(Sink sink)
      method called before traversing the childs
      boolean equals​(java.lang.Object obj)
      Block[] getBlocks()
      Returns the childBlocks.
      int hashCode()
      void traverse​(Sink sink)
      Traverse the block
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFatherBlock

        AbstractFatherBlock​(Block[] childBlocks)
        Creates the AbstractFatherBlock.
        Parameters:
        childBlocks - child blocks
    • Method Detail

      • before

        abstract void before​(Sink sink)
        method called before traversing the childs
        Parameters:
        sink - a sink to fill
      • after

        abstract void after​(Sink sink)
        method called after traversing the childs
        Parameters:
        sink - a sink to fill
      • traverse

        public final void traverse​(Sink sink)
        Traverse the block
        Specified by:
        traverse in interface Block
        Parameters:
        sink - the sink that travers
      • getBlocks

        public final Block[] getBlocks()
        Returns the childBlocks.
        Returns:
        Block[] with the childBlocks.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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