com.android.tools.lint.checks
Class TypographyDetector.ReplaceEdit

java.lang.Object
  extended by com.android.tools.lint.checks.TypographyDetector.ReplaceEdit
Enclosing class:
TypographyDetector

public static class TypographyDetector.ReplaceEdit
extends java.lang.Object

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

offset

public final int offset
The offset of the edit


length

public final int length
The number of characters to delete at the offset


replaceWith

public final java.lang.String replaceWith
The characters to insert at the offset

Constructor Detail

TypographyDetector.ReplaceEdit

public TypographyDetector.ReplaceEdit(int offset,
                                      int length,
                                      java.lang.String replaceWith)
Creates a new replace edit

Parameters:
offset - the offset of the edit
length - the number of characters to delete at the offset
replaceWith - the characters to insert at the offset