public class LintFix
extends java.lang.Object
The set of operations is quite limited at the moment; more will be added over time.
| Modifier and Type | Class and Description |
|---|---|
static class |
LintFix.Builder
Builder for creating various types of fixes
|
static class |
LintFix.DataMap
General map storage for quickfix data; clients can look up via map keys or
types of values
|
static class |
LintFix.FixMapBuilder |
static class |
LintFix.GroupBuilder
Builder for constructing a group of fixes
|
static class |
LintFix.GroupType
Captures the various types of a
LintFix.LintFixGroup |
static class |
LintFix.LintFixGroup
A list of quickfixes
|
static class |
LintFix.ReplaceString
Convenience class for the common scenario of suggesting a fix which involves
replacing a static string or regular expression with a replacement string
|
static class |
LintFix.ReplaceStringBuilder
A builder for replacing strings
|
static class |
LintFix.SetAttribute
Convenience class for the common scenario of suggesting a fix which involves
setting an XML attribute.
|
static class |
LintFix.SetAttributeBuilder |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
displayName |
| Modifier | Constructor and Description |
|---|---|
protected |
LintFix(java.lang.String displayName) |
| Modifier and Type | Method and Description |
|---|---|
static LintFix.Builder |
create()
Creates a new Quickfix Builder
|
static <T> T |
getData(LintFix fix,
java.lang.Class<T> key)
Convenience wrapper which checks whether the given fix is a map, and
if so returns the value stored by its key
|
java.lang.String |
getDisplayName()
Return display name
|
@NonNull public static LintFix.Builder create()
@Nls @Nullable public java.lang.String getDisplayName()
@Nullable
public static <T> T getData(@Nullable
LintFix fix,
@NonNull
java.lang.Class<T> key)