@Immutable public abstract class CodeReplacement extends java.lang.Object implements java.lang.Comparable<CodeReplacement>
Constructor and Description |
---|
CodeReplacement() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CodeReplacement x) |
int |
getEndPosition()
Returns the end position within the file that the modification
should be applied starting at.
|
abstract int |
getLength()
Returns how many characters the new content should replace in the original content.
|
abstract java.lang.String |
getNewContent()
Returns the new content that should be inserted into the file.
|
abstract int |
getStartPosition()
Returns the start position within the file that the modification should be applied starting at.
|
public abstract int getStartPosition()
public abstract int getLength()
public int getEndPosition()
public abstract java.lang.String getNewContent()
public final int compareTo(CodeReplacement x)
compareTo
in interface java.lang.Comparable<CodeReplacement>
Copyright © 2009-2020 Google. All Rights Reserved.