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 TypeMethodDescriptionboolean
contains
(TextPosition position) static TextRegion
create
(TextPosition start, TextPosition end) boolean
getEnd()
getStart()
int
hashCode()
static TextRegion
of
(org.codehaus.groovy.ast.ASTNode node) shiftVertically
(int numLines) toString()