com.harukizaemon.simian

## Interface Block

-     public interface Block

  A block of code.
  Author:
    Simon Harris

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getEndLineNumber()` Obtains the ending line number of the block.
    `SourceFile` | `getSourceFile()` Obtains the file containing the lines.
    `int` | `getStartLineNumber()` Obtains the starting line number of the block.
    `boolean` | `isOverlapping(Block other)` Determines if this block overlaps another
    `boolean` | `isSubsumed()` Obtains whether this block was subsumed by a longer block or not.

- - ### Method Detail

    - #### getSourceFile

          SourceFile getSourceFile()

      Obtains the file containing the lines.
      Returns:
        The file containing the lines.

    - #### getStartLineNumber

          int getStartLineNumber()

      Obtains the starting line number of the block.
      Returns:
        The starting line number of the block.

    - #### getEndLineNumber

          int getEndLineNumber()

      Obtains the ending line number of the block.
      Returns:
        The ending line number of the block.

    - #### isSubsumed

          boolean isSubsumed()

      Obtains whether this block was subsumed by a longer block or not.
      Returns:
        true if this block was subsumed by a longer block; otherwise false.

    - #### isOverlapping

          boolean isOverlapping(Block other)

      Determines if this block overlaps another
      Parameters:
        `other` - Another block
      Returns:
        true if this block overlaps; otherwise false.

Copyright (c) 2003-2013 Simon Harris. All rights reserved.