public enum ErrorFormat extends java.lang.Enum<ErrorFormat>
Enum Constant and Description |
---|
MULTILINE |
SINGLELINE |
SOURCELESS |
Modifier and Type | Method and Description |
---|---|
abstract MessageFormatter |
toFormatter(SourceExcerptProvider source,
boolean colorize)
Convert to a concrete formatter.
|
static ErrorFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorFormat SINGLELINE
public static final ErrorFormat MULTILINE
public static final ErrorFormat SOURCELESS
public static ErrorFormat[] values()
for (ErrorFormat c : ErrorFormat.values()) System.out.println(c);
public static ErrorFormat 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 namejava.lang.NullPointerException
- if the argument is nullpublic abstract MessageFormatter toFormatter(SourceExcerptProvider source, boolean colorize)
Copyright © 2009-2019 Google. All Rights Reserved.