/*******************************************************************************
* Copyright (c) 2009 Andrey Loskutov.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributor: Andrey Loskutov - initial API and implementation
*******************************************************************************/
package de.loskutov.anyedit.util;
/**
* @author Andrey
*/
public class LineReplaceResult {
/** relative to line start, changed results must have index >= 0 */
public int startReplaceIndex;
/** changed results must have have range > 0, to replace entire line specify "-1" for the range */
public int rangeToReplace;
/** changed results must have not-null text to replace */
public String textToReplace;
@Override
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("startIndex: ").append(startReplaceIndex); //$NON-NLS-1$
sb.append(", range: ").append(rangeToReplace); //$NON-NLS-1$
sb.append(", text: ").append(textToReplace); //$NON-NLS-1$
return sb.toString();
}
}