public static class LintFix.ReplaceString extends LintFix
This class/API is only intended for IDE use. Lint checks should be
accessing the builder class instead - LintFix.create().
LintFix.Builder, LintFix.DataMap, LintFix.FixMapBuilder, LintFix.GroupBuilder, LintFix.GroupType, LintFix.LintFixGroup, LintFix.ReplaceString, LintFix.ReplaceStringBuilder, LintFix.SetAttribute, LintFix.SetAttributeBuilder| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
oldPattern
The regex to replace.
|
java.lang.String |
oldString
The string literal to replace.
|
boolean |
reformat
Whether the modified text range should be reformatted
|
java.lang.String |
replacement
The replacement string.
|
boolean |
shortenNames
Whether symbols should be shortened after replacement
|
displayName| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName()
Return display name
|
@Nullable public final java.lang.String oldString
@Nullable public final java.lang.String oldPattern
@NonNull public final java.lang.String replacement
public final boolean shortenNames
public final boolean reformat
@NonNull public java.lang.String getDisplayName()
getDisplayName in class LintFix