Top Description Fields Constructors Methods
org.antlr.v4.tool

public final Enum ErrorSeverity

extends Enum<ErrorSeverity>
Class Inheritance

Abstracts away the definition of Message severity and the text that should display to represent that severity if there is no StringTemplate available to do it.
Author
Jim Idle - Temporal Wave LLC ([email protected])

Field Summary

Modifier and TypeField and Description
public static final ErrorSeverity
public static final ErrorSeverity
public static final ErrorSeverity
public static final ErrorSeverity
private final String
text

The text version of the ENUM value, used for display purposes

public static final ErrorSeverity
public static final ErrorSeverity

Constructor Summary

AccessConstructor and Description
private
ErrorSeverity(String
The human readable string representing the severity level
text
)

Standard constructor to build an instance of the Enum entries

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The human readable string representing the severity level
getText
()

Standard getter method for the text that should be displayed in order to represent the severity to humans and product modelers.

public static ErrorSeverity
public static ErrorSeverity[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ERRORback to summary
public static final ErrorSeverity ERROR
ERROR_ONE_OFFback to summary
public static final ErrorSeverity ERROR_ONE_OFF
FATALback to summary
public static final ErrorSeverity FATAL
INFOback to summary
public static final ErrorSeverity INFO
textback to summary
private final String text

The text version of the ENUM value, used for display purposes

WARNINGback to summary
public static final ErrorSeverity WARNING
WARNING_ONE_OFFback to summary
public static final ErrorSeverity WARNING_ONE_OFF

Constructor Detail

ErrorSeverityback to summary
private ErrorSeverity(String text)

Standard constructor to build an instance of the Enum entries

Parameters
text:String

The human readable string representing the severity level

Method Detail

getTextback to summary
public String getText()

Standard getter method for the text that should be displayed in order to represent the severity to humans and product modelers.

Returns:String

The human readable string representing the severity level

valueOfback to summary
public static ErrorSeverity valueOf(String name)
valuesback to summary
public static ErrorSeverity[] values()