Enum CompilerMessage.MessageType
- java.lang.Object
-
- java.lang.Enum<CompilerMessage.MessageType>
-
- net.emustudio.emulib.plugins.compiler.CompilerMessage.MessageType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompilerMessage.MessageType>
- Enclosing class:
- CompilerMessage
public static enum CompilerMessage.MessageType extends java.lang.Enum<CompilerMessage.MessageType>
Message type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TYPE_ERROR
The message represents an error.TYPE_INFO
The message represents an information.TYPE_UNKNOWN
The message is of unknown type.TYPE_WARNING
The message represents a warning.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompilerMessage.MessageType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompilerMessage.MessageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_WARNING
public static final CompilerMessage.MessageType TYPE_WARNING
The message represents a warning.
-
TYPE_ERROR
public static final CompilerMessage.MessageType TYPE_ERROR
The message represents an error.
-
TYPE_INFO
public static final CompilerMessage.MessageType TYPE_INFO
The message represents an information.
-
TYPE_UNKNOWN
public static final CompilerMessage.MessageType TYPE_UNKNOWN
The message is of unknown type.
-
-
Method Detail
-
values
public static CompilerMessage.MessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompilerMessage.MessageType c : CompilerMessage.MessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompilerMessage.MessageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-