Class BlockImpl

    • Field Detail

      • predecessors

        protected final java.util.Set<BlockImpl> predecessors
        The set of predecessors.
    • Constructor Detail

      • BlockImpl

        protected BlockImpl​(Block.BlockType type)
        Create a new BlockImpl.
        Parameters:
        type - the type of this basic block
    • Method Detail

      • getUid

        public long getUid​(@UnknownInitialization BlockImpl this)
        Specified by:
        getUid in interface org.plumelib.util.UniqueId
      • getType

        public Block.BlockType getType()
        Description copied from interface: Block
        Returns the type of this basic block.
        Specified by:
        getType in interface Block
        Returns:
        the type of this basic block
      • getPredecessors

        public java.util.Set<Block> getPredecessors()
        Description copied from interface: Block
        Returns the predecessors of this basic block.
        Specified by:
        getPredecessors in interface Block
        Returns:
        the predecessors of this basic block
      • addPredecessor

        public void addPredecessor​(BlockImpl pred)
      • removePredecessor

        public void removePredecessor​(BlockImpl pred)