(int line, int begin, int end)
| 41 | } |
| 42 | |
| 43 | public boolean isSplitBy(int line, int begin, int end) { |
| 44 | int scopeEnd = end - 1; |
| 45 | return this.begin >= line && this.begin < begin |
| 46 | || this.end >= line && this.end < begin |
| 47 | || this.begin < begin && this.end >= begin && this.end < scopeEnd |
| 48 | || this.begin >= begin && this.begin <= scopeEnd && this.end > scopeEnd; |
| 49 | } |
| 50 | |
| 51 | } |