Package org.spockframework.runtime.model
Class TextRegion
java.lang.Object
org.spockframework.runtime.model.TextRegion
A region of text spanning all characters between a start position (inclusive)
and an end position (exclusive). Positions are given as line/column pairs
(starting at 1). TextRegion instances are immutable.
- Author:
- Peter Niederwieser
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(TextPosition position) static TextRegioncreate(TextPosition start, TextPosition end) booleangetEnd()getStart()inthashCode()static TextRegionof(org.codehaus.groovy.ast.ASTNode node) shiftVertically(int numLines) toString()