|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Severity> com.android.tools.lint.detector.api.Severity
@Beta public enum Severity
Severity of an issue found by lint
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
Enum Constant Summary | |
---|---|
ERROR
Errors: The issue is known to be a real error that must be addressed. |
|
FATAL
Fatal: Use sparingly because a warning marked as fatal will be considered critical and will abort Export APK etc in ADT |
|
IGNORE
Ignore: The user doesn't want to see this issue |
|
INFORMATIONAL
Information only: Might not be a problem, but the check has found something interesting to say about the code. |
|
WARNING
Warning: Probably a problem. |
Method Summary | |
---|---|
static Severity |
fromName(java.lang.String name)
Looks up the severity corresponding to a given named severity. |
java.lang.String |
getDescription()
Returns a description of this severity suitable for display to the user |
java.lang.String |
getName()
Returns the name of this severity |
static Severity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Severity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
@NonNull public static final Severity FATAL
@NonNull public static final Severity ERROR
@NonNull public static final Severity WARNING
@NonNull public static final Severity INFORMATIONAL
@NonNull public static final Severity IGNORE
Method Detail |
---|
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null@NonNull public java.lang.String getDescription()
@NonNull public java.lang.String getName()
@Nullable public static Severity fromName(@NonNull java.lang.String name)
Enum.toString()
name
- the name to look up
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |