public static class LintFix.SetAttributeBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
displayName |
| Modifier and Type | Method and Description |
|---|---|
LintFix.SetAttributeBuilder |
android()
Sets the namespace to the Android namespace (shortcut for
namespace(String) passing in SdkConstants.ANDROID_URI |
LintFix.SetAttributeBuilder |
attribute(java.lang.String attribute)
Sets the attribute name.
|
LintFix |
build()
Constructs a
LintFix for this attribute operation |
LintFix.SetAttributeBuilder |
caret(int valueStartDelta)
Moves the caret to the given offset (relative to the position
of the value text; can be negative (
means not set |
LintFix.SetAttributeBuilder |
caretBegin()
Moves the caret to the beginning of the value after applying the new attribute
|
LintFix.SetAttributeBuilder |
caretEnd()
Moves the caret to the end of the value after applying the new attribute
|
LintFix.SetAttributeBuilder |
name(java.lang.String displayName)
Sets display name.
|
LintFix.SetAttributeBuilder |
namespace(java.lang.String namespace)
Sets the namespace to the given namespace
|
LintFix.SetAttributeBuilder |
remove(java.lang.String attribute)
Removes the given attribute
|
LintFix.SetAttributeBuilder |
select(int start,
int end)
Selects the value in the offset range (relative to value start
|
LintFix.SetAttributeBuilder |
selectAll()
Selects the newly inserted value
|
LintFix.SetAttributeBuilder |
todo(java.lang.String namespace,
java.lang.String attribute)
Sets the value to TODO meant for values that aren't optional.
|
LintFix.SetAttributeBuilder |
todo(java.lang.String namespace,
java.lang.String attribute,
java.lang.String prefix,
java.lang.String suffix)
Sets the value to TODO meant for values that aren't optional.
|
LintFix.SetAttributeBuilder |
value(java.lang.String value)
Sets the value to the given value.
|
public LintFix.SetAttributeBuilder name(java.lang.String displayName)
displayName - the display namepublic LintFix.SetAttributeBuilder android()
namespace(String) passing in SdkConstants.ANDROID_URIpublic LintFix.SetAttributeBuilder namespace(@Nullable java.lang.String namespace)
public LintFix.SetAttributeBuilder value(@Nullable java.lang.String value)
remove(String)public LintFix.SetAttributeBuilder attribute(@NonNull java.lang.String attribute)
public LintFix.SetAttributeBuilder remove(@NonNull java.lang.String attribute)
public LintFix.SetAttributeBuilder selectAll()
public LintFix.SetAttributeBuilder todo(@Nullable java.lang.String namespace, @NonNull java.lang.String attribute, @Nullable java.lang.String prefix, @Nullable java.lang.String suffix)
prefix - optional prefix to add before the TODO markersuffix - optional suffix to add after the TODO markerpublic LintFix.SetAttributeBuilder todo(@Nullable java.lang.String namespace, @NonNull java.lang.String attribute)
public LintFix.SetAttributeBuilder select(int start, int end)
public LintFix.SetAttributeBuilder caret(int valueStartDelta)
means not setpublic LintFix.SetAttributeBuilder caretBegin()
public LintFix.SetAttributeBuilder caretEnd()