public abstract class Replacement extends Object
Constructor and Description |
---|
Replacement() |
Modifier and Type | Method and Description |
---|---|
static Replacement |
create(int startPosition,
int endPosition,
String replaceWith) |
static Replacement |
create(Range<Integer> range,
String replaceWith) |
abstract String |
getReplacementString()
The string to replace the range of characters with.
|
abstract Range<Integer> |
getReplaceRange()
The range of characters in the original source to replace.
|
public abstract Range<Integer> getReplaceRange()
public abstract String getReplacementString()
public static Replacement create(int startPosition, int endPosition, String replaceWith)
public static Replacement create(Range<Integer> range, String replaceWith)
Copyright © 2015–2016 Google Inc.. All rights reserved.