public final class CodeReplacement extends Object
Constructor and Description |
---|
CodeReplacement(int startPosition,
int length,
String newContent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getLength()
Returns how many bytes the new content should replace in the
original content.
|
String |
getNewContent()
Returns the new content that should be inserted into the file.
|
String |
getSortKey()
Returns an additional String key that can be used to sort replacements using lexical ordering.
|
int |
getStartPosition()
Returns the start position within the file that the modification
should be applied starting at.
|
int |
hashCode() |
String |
toString() |
public CodeReplacement(int startPosition, int length, String newContent)
public int getStartPosition()
public int getLength()
public String getNewContent()
public String getSortKey()
Copyright © 2009-2016 Google. All Rights Reserved.