public enum ErrorSeverity extends Enum<ErrorSeverity>
Enum Constant and Description |
---|
ERROR |
ERROR_ONE_OFF |
FATAL |
INFO |
WARNING |
WARNING_ONE_OFF |
Modifier and Type | Method and Description |
---|---|
String |
getText()
Standard getter method for the text that should be displayed in order to
represent the severity to humans and product modelers.
|
static ErrorSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorSeverity INFO
public static final ErrorSeverity WARNING
public static final ErrorSeverity WARNING_ONE_OFF
public static final ErrorSeverity ERROR
public static final ErrorSeverity ERROR_ONE_OFF
public static final ErrorSeverity FATAL
public static ErrorSeverity[] values()
for (ErrorSeverity c : ErrorSeverity.values()) System.out.println(c);
public static ErrorSeverity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getText()
Copyright © 1992–2020 ANTLR. All rights reserved.