package org.xpect.expectation.impl; import org.xpect.XpectInvocation; import org.xpect.expectation.IMultiLineExpectationRegion; public class MultiLineExpectationRegion extends AbstractExpectationRegion implements IMultiLineExpectationRegion { private final int closingSeparatorOffset; private final String indentation; public MultiLineExpectationRegion(XpectInvocation statement, CharSequence document, int offset, int length, String indentation, String separator, int openingSeparatorOffset, int closingSeparatorOffset) { super(statement, document, offset, length, separator, openingSeparatorOffset); this.indentation = indentation; this.closingSeparatorOffset = closingSeparatorOffset; } public int getClosingSeparatorOffset() { return closingSeparatorOffset; } public String getIndentation() { return indentation; } public boolean isSingleLine() { return indentation == null; } }