|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.android.tools.lint.checks.TypographyDetector.ReplaceEdit
public static class TypographyDetector.ReplaceEdit
An object describing a single edit to be made. The offset points to a location to start editing; the length is the number of characters to delete, and the replaceWith string points to a string to insert at the offset. Note that this can model not just replacement edits but deletions (empty replaceWith) and insertions (replace length = 0) too.
| Field Summary | |
|---|---|
int |
length
The number of characters to delete at the offset |
int |
offset
The offset of the edit |
java.lang.String |
replaceWith
The characters to insert at the offset |
| Constructor Summary | |
|---|---|
TypographyDetector.ReplaceEdit(int offset,
int length,
java.lang.String replaceWith)
Creates a new replace edit |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int offset
public final int length
public final java.lang.String replaceWith
| Constructor Detail |
|---|
public TypographyDetector.ReplaceEdit(int offset,
int length,
java.lang.String replaceWith)
offset - the offset of the editlength - the number of characters to delete at the offsetreplaceWith - the characters to insert at the offset
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||